User:Underscorre/global.js

window.PurgeButtonText = 'Purge'; // Text for "purge" button added to edit dropdown

window.ajaxPages = ["Special:RecentChanges", "Special:WikiActivity", "Special:Log", "Special:Newwikis"]; // Pages to have content reloaded with AJAX window.ajaxRefresh = 15000; // Delay of 15 seconds between AJAX reloads, as opposed to the default 30

window.DisplayClockJS = '%2I:%2M:%2S %p %2d %{January;February;March;April;May;June;July;August;September;October;November;December}m %Y (UTC)'; // Date format for clock in top right

var scripts = [ 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:UTCClock/code.js', 'u:dev:MediaWiki:FindAndReplace/code.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:creepypasta:MediaWiki:CPWEditTools.js' ];

if (mw.config.get('wgUserGroups').indexOf('sysop') > -1) { scripts.push('u:dev:MediaWiki:AjaxRedirect/code.js'); scripts.push('u:dev:MediaWiki:WHAM/code.2.js'); scripts.push('u:dev:MediaWiki:AjaxBatchDelete.js'); }

importArticles({   type: 'script',    articles: scripts });

$(function { // Stolen from w:c:admintools, adds an "Editcount" tab to the user profile header thing   var username = wgTitle.indexOf("Contributions/") != -1 ? wgTitle.replace("Contributions/", "") : wgTitle;    $('.tabs-container > ul.tabs').append('Editcount'); });