MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/***************************/ /* Configuration Settings **/ /***************************/

/* BackToThread */ $(function {    var threadurl="/wiki/" + wgPageName;     if (wgAction === "history" && wgNamespaceNumber === 1201) {         $(' ← Return to thread ').insertAfter("div.WikiaArticle");         $("#btt").attr("href", threadurl).css({"color":"#02B","font-size":"14px"});     } });

/* InputUsername */ var username = wgUserName; if (username) {$('.InputUsername').html(username);}

/* ChatReload */ window.chatReloadTime = 60000;

/* HighlightUsers */ highlight = { selectAll: true, bot: '#A0D', staff: '#027', vstf: '#027' };

/* InactiveUsers */ InactiveUsers = {months: 2};

/* QuickDelete */ window.category = 'Candidates for deletion';

/* StandardEditSummary */ window.dev = window.dev || {}; window.dev.editSummaries = { css: '#stdSummaries {width: 264px;}', select: 'MediaWiki:StandardEditSummary' };

/* User Tabs */ window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } topuser: { u:'Top User' }, immaglaceon: { u:'Glaceon'}, prime: { u:'Time After Time'} } };

UserTagsJS.modules.custom = { 'Hackey5': ['topuser'], 'Nusdan': ['topuser'], 'Shuddervolt': ['immaglaceon'], '3primetime3': ['prime', 'topuser'] };

/***************************/ /* Dev Wiki Script Imports */ /***************************/

importArticles({   type: 'script',    articles: [        'u:dev:CacheCheck/code.js',        'u:dev:ChatReload/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:EditBoardDescription/code.js',        'u:dev:ExternalImageLoader/code.js',        'u:dev:HighlightUsers/code.js',        'u:dev:InactiveUsers/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:QuickDelete/code.js',        'u:dev:RevealAnonIP/code.js',        'u:dev:Standard_Edit_Summary/code.js',        'u:dev:TopEditors/code.js',        'u:dev:UserRightsRecord/code.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:UserTags/code.js'    ] });