MediaWiki:Wikia.js

/* Ajax Auto-Refresh (courtesy pcj) */ var ajaxPages = ["Special:RecentChanges", "Special:Watchlist", "Special:Log", "Special:Contributions"]; var AjaxRCRefreshText = 'Auto-refresh'; importScriptPage('AjaxRC/code.js', 'dev') /* purge button */ function CreatePurgeButton { $('section header div.buttons a:first-child').before('Purge'); } addOnloadHook(CreatePurgeButton); /* logs button */ function CreateLogsButton { $('section header div.buttons a:first-child').before('Logs'); } addOnloadHook(CreateLogsButton) /*Recent changes button */ function CreateRecentChangesButton { $('section header div.buttons a:first-child').before('Recent Changes'); } addOnloadHook(CreateRecentChangesButton)