Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
//
// Last Modified: 21th April 2015, 15:04
// 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();
// Badge image uploads don't need to be shown.
if (({RecentChanges: 1, Log: 1})[mw.config.get('wgCanonicalSpecialPageName')] === 1) {
$("li:contains('File:Badge')").remove();
$("li:contains('Thread:Digitalcleaner')").remove();
}
// Fix the Abuse Filter textarea size.
$("textarea#wpFilterRules").attr("style","margin: 0px; width: 1200px; height: 400px;");
// Remove "Category" and "Talk" redlinks from WP since those are generated by #ifexist and don't need creation.
if(mw.config.get('wgPageName') === "Special:WantedPages") {
$("li:contains('Category:')").remove();
$("li:contains('Talk:')").remove();
}
}(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) {
importArticles({
type: "script",
articles: [
"u:dev:AjaxBatchDelete/code.js",
"u:dev:AjaxBatchUndelete/code.js",
"u:dev:CacheCheck/code.js",
"u:dev:AjaxPatrol/code.js"
]
});
}
// UserTags
window.UserTagsJS = {
modules: {
mwGroups: ['bureaucrat', 'sysop', 'rollback', 'patroller', 'chatmoderator', 'wikiastars', 'bannedfromchat', 'inactive'],
metafilter: {
'chatmoderator': ['sysop','bureaucrat'],
'rollback': ['sysop','bureaucrat']
}
},
tags: {
bureaucrat: { link: 'Project:Sysop', order:1 },
sysop: { link: 'Project:Sysop', order:2 },
rollback: { link: 'Project:Rollback', order:3 }
},
};
// AjaxRC
window.ajaxPages = ["Special:WikiActivity","Special:Log","Special:RecentChanges"];
window.ajaxIndicator = 'https://images.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';
// This imports various scripts that help the wiki.
// Non-local scripts load first for interoperability.
importArticles({
type: "script",
articles: [
"u:dev:ThreadIndicator/code.js",
"u:dev:ListFiles/code.js",
"u:dev:NullEditButton/code.js",
"u:dev:UserTags/code.js",
"u:dev:User:UltimateSupreme/AjaxRollback.js",
"u:dev:AjaxRC/code.js",
// "u:naruto:MediaWiki:Gadget-AcountNav.js",
"MediaWiki:Common.js/ImageButtons.js",
"MediaWiki:Common.js/VotesTally.js",
"MediaWiki:Common.js/FixUploader.js"
]
});