MediaWiki:Common.js

// // Last Modified: 8th January 2015, 23:10 // This is the wiki-wide javascript file. // Anything below will be loaded on all wiki-styles. // // Please make sure any code snippets below adhere to // the Wikia Customisation policy. // // Do NOT edit this file if you do not know what you are doing! //

// jQuery code snippets. // Use this for any minor fixes with jquery. (function (window, $, mw) {	"use strict";	// Fix images on threads (image line breaks and looks messy)	$(".msg-body img").unwrap;

// Append a notice after infobox. - NOT READY

}(window, jQuery, mediaWiki));

// This code snippet is for all sysop-only tools. // Anything here will only load if the user has // the sysop flag. if (jQuery.inArray("sysop", wgUserGroups) !=-1) { mw.util.addPortletLink("AccountNavigation", "/wiki/Special:AdminDashboard", "Dashboard", "p-dashboard"); mw.util.addPortletLink("AccountNavigation", "/wiki/Special:UserRights", "Manage Rights", "p-userrights"); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage('CacheCheck/code.js', 'dev'); }

// AjaxRC window.ajaxPages = ["Special:WikiActivity","Special:Log","Special:RecentChanges"]; window.ajaxIndicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif'; window.AjaxRCRefreshText = 'Auto Refresh'; window.AjaxRCRefreshHoverText = 'Silently refreshes the contents of this page every 60 seconds without requiring a full reload';

// RevealAnonIP window.RevealAnonIP = { permissions : ['user'] };

// ArchiveTool - will be enabled when templates and files are copied over window.archiveListTemplate = 'ArchiveList'; window.archivePageTemplate = 'ArchivePage';

// This imports various scripts that help the wiki. // Non-local scripts load first for interoperability. importArticles({	type: "script",	articles: [		"w:c:dev:ListFiles/code.js",		"w:c:dev:ArchiveTool/code.js",		"w:c:dev:RevealAnonIP/code.js",		"w:c:dev:NullEditButton/code.js",		"w:c:dev:ReferencePopups/code.js",		"w:c:dev:User:UltimateSupreme/AjaxRollback.js",		"w:c:dev:AjaxRC/code.js"		// "MediaWiki:Common.js/FixUploader.js"	] });