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.
//************************************************
// Imported Scripts
//************************************************
importScriptPage('MediaWiki:Common.js/stdsummaries.js');
importScriptPage('MediaWiki:Common.js/userRightsIcons.js');
importScriptPage('Countdown/code.js', 'dev');
importScriptPage('BackToTopButton/code.js', 'dev');
importScriptPage('PurgeButton/code.js', 'dev' );
importScriptPage('DisableArchiveEdit/code.js', 'dev');
importArticles({
type: "script",
articles: [
"MediaWiki:Common.js/ChatHacks.js", /* Chat Hacks for chat */
]
});
//************************************************
// {{Username}}
//************************************************
if (wgUserName != 'null') { $('.insertusername').html(wgUserName); }
//************************************************
// Wanted Files Tweak
//************************************************
$(function() {
if ("Special" == wgCanonicalNamespace && "WantedFiles" == wgCanonicalSpecialPageName) {
$('ol.special a.new').each(function() {
var m = $(this).attr('href').match(/title=File:([^&]+)/);
if (m) {
$(this).attr({
href: '/wiki/Special:Upload?wpDestFile=' + m[1],
title: 'Upload ' + m[1]
});
}
});
}
});
//************************************************
// Adds Button to Edit Message Wall Greeting
//************************************************
function EditGreeting() {
if (wgCanonicalNamespace == 'Message_Wall' && wgAction != 'history') {
if (wgTitle == wgUserName) {
$('.WikiaMainContent').prepend('<div class="UserProfileActionButton"><a accesskey="e" href="/wiki/Message_Wall_Greeting:'+ wgUserName +'?action=edit" class="wikia-button" data-id="edit" id="talkArchiveEditButton" style="padding-left: 5px; padding-right: 8px;"><img alt="" class="sprite edit-pencil" height="16" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" width="22"> Edit greeting </a></div>');
}
}
}
addOnloadHook(EditGreeting);
//************************************************
// Test if an element has a certain class
// Maintainers: Mike Dillon, R. Koot, SG
//************************************************
var hasClass = (function () {
var reCache = {};
return function (element, className) {
return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
};
})();
//************************************************
// Disable Archive Edit Config
//************************************************
var DisableArchiveEditConfig = {
archiveSubpage: 'Archive',
disableCompletely: false,
textColor: '#D9D9D9',
userLang: true
};