MediaWiki:Common.js

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

// Auto refresh importScriptPage('AjaxRC/code.js', 'dev'); var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"]; var AjaxRCRefreshText = 'Auto-refresh';

// http://dev.wikia.com/wiki/RevealAnonIP window.RevealAnonIP = { permissions : ['user'] }; // End of RevealAnonIP // UserTags window.UserTagsJS = { modules: {}, tags: { bureaucrat: {f:'Conception Grandmaster', order:-1/0}, founder: {u:'The Creator', order:1}, rollback: {u:'Conception Guardian', order:2}, programmer: {u:'Hacker', order:3}, killed: {u:'Executed Conception Destroyer', order:5}, sockpuppet: {u:'Cloned Conceptor', order:6}, labguard: {u:'Lab Guardian', order:4} },       oasisPlaceBefore: '' }; UserTagsJS.modules.newuser = true; UserTagsJS.modules.inactive = 10; UserTagsJS.modules.metafilter = { 'bureaucrat': ['founder'], 'sysop': ['bureaucrat'], }; UserTagsJS.modules.mwGroups = ['bureaucrat', 'founder', 'rollback', 'programmer', 'killed', 'sockpuppet', 'labguard']; UserTagsJS.modules.implode = { 'labguard': ['patroller', 'rollback', 'chatmoderator'] }; //A user has a "New Editor" tag until UserTagsJS.modules.newuser = { days: 14, edits: 100 }; //Adds custom usertags UserTagsJS.modules.custom = { 'BLASTSALB':                                    ['killed', 'sockpuppet'], 'CyberGuy23':                                   ['founder'], 'Commando_Conceptor_L5_5.12.159.141':           ['killed', 'sockpuppet'], 'ItsBloonTasty':                                ['patroller', 'rollback', 'chatmoderator'], 'Logologologol':                                ['programmer'], 'LolChainsaws130':                              ['killed'], 'Martynas Šalčiūnas':                           ['killed'], 'Martynas2':                                    ['killed', 'sockpuppet'], 'Meta07':                                       ['bureaucrat'], 'Nazi Officer 213.233.93.252':                  ['killed'], 'Patriotic with A.R.s and S.M.G.s 5.12.177.163': ['killed', 'sockpuppet'], 'Planterobloon':                                ['rollback'], 'PZFan123':                                     ['killed', 'sockpuppet'], 'Smellybroc':                                   ['killed', 'sockpuppet'] }; // End of UserTags // Replaces with the name of the user browsing the page function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace); // End of the replacement // IMPORT importArticles({   type: 'script',    articles: [          "w:c:dev:TimedSlider/code.js",          "w:c:dev:RevealAnonIP/code.js",          "w:c:dev:UserTags/code.js",          "w:c:dev:AjaxRC/code.js",          "w:c:dev:Verbatim/code.js"    ] });