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.
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images3.wikia.nocookie.net/__cb20110213234661/central/images/7/70/Button-wikiasig.png",
"speedTip": "Signature w/out timestamp",
"tagOpen": "~~",
"tagClose": "~",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png",
"speedTip": "Redirect",
"tagOpen": "#REDIRECT [[",
"tagClose": "]]",
"sampleText": "Insert text"};
}
/* kill image popups - 8/1/11 */
window.wgEnableImageLightboxExt = false;
function changeimagelinks() {
$('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox');
var a = document.getElementsByTagName('a');
for(var t = 0; t < a.length; ++t) {
var a2 = a[t];
var img = a2.getElementsByTagName('img');
if(img[0] != null) {
if (a2.href.indexOf('images.wikia.com') != -1) {
var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1);
a2.setAttribute('href',link);
}
}
}
}
addOnloadHook(changeimagelinks);
importScriptPage('SkinSwitchButton/code.js', 'dev');
//Add history to Message Wall
function WallHistory() {
if (wgCanonicalNamespace == 'Thread') {
$('#WallBrickHeader').append('<a href="/wiki/'+ wgPageName +'?action=history" class="wikia-button" style="margin-left:10px; margin-right:10px; float: right;" id="History">View History</a>');
}
if (wgCanonicalNamespace == 'Message_Wall' && wgAction != 'history') {
$('.WikiaMainContent').prepend('<div class="UserProfileActionButton"><a href="/wiki/'+ wgPageName +'?action=history" class="wikia-button" style="margin-left:10px; margin-right:10px;" id="History">View History</a></div>');
}
}
addOnloadHook(WallHistory);
/* Change Wikia Activity button into Recent Changes */
function WikiActivity2RecentChanges() {
$('a.wikia-button[data-id$="wikiactivity"]').replaceWith('<a data-id="recentchanges" class="wikia-button secondary" accesskey="g" title="Special:RecentChanges" href="/wiki/Special:RecentChanges"><img height="0" width="0" class="sprite activity" src="http://images1.wikia.nocookie.net/common/skins/common/blank.gif">Recent Changes</a>');
}
addOnloadHook(WikiActivity2RecentChanges);
// ============================================================
// displayTimer
// ============================================================
var refreshDate;
function addDate() {
var UTCDate = ((new Date()).toUTCString()).replace("GMT", "(UTC)");
$('#showdate').empty().append('<span style="font-weight: bold; text-transform: none; color: white;"><a title="Purge the server cache and update the contents of this page." href="' + wgArticlePath.replace('$1', wgPageName.replace(/ /g, '_')) + '?action=purge">' + UTCDate.substring(5) + '</a></span>');
window.clearTimeout(refreshDate);
refreshDate = window.setTimeout(addDate, 5000);
}
$(document).ready(function() {
if (skin == 'oasis')
$('<li id="displayTimer"><span id="showdate"></span></li>').appendTo('#GlobalNavigation');
else
$('#p-personal ul').prepend('<li><span id="showdate"></span></li>');
addDate();
refreshDate = window.setTimeout(addDate, 5000);
$('#displayTimer').css({'font-size': "12px"});
});
//
/*** Auto-refreshing recent changes ***/
AjaxRCRefreshText = 'Auto-Refresh';
AjaxRCRefreshHoverText = 'Automatically Refreshes the Recent Activity';
ajaxPages = ["Special:RecentChanges","Special:WikiActivity"];
importScriptPage('AjaxRC/code.js', 'dev');