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';

// making the Username tag work //var a = getElementsByTagName('a')[6].getAttribute('href'); //var x; //for (x in getElementsByClassName('insertusername')){ //getElementsByClassName('insertusername')[x].innerHTML = a; //}

// http://dev.wikia.com/wiki/RevealAnonIP window.RevealAnonIP = { permissions : ['user'] }; // End of RevealAnonIP // UserTags window.UserTagsJS = { modules: {}, tags: { bureaucrat: {u:'Conception Grandmaster', order:-1/0}, founder: {u:'The Creator', order:-1/0}, rollback: {u:'Conception Guardian', order:2}, programmer: {u:'Hacker', order:3}, killed: {u:'Executed Conception Destroyer', order:-1/0}, sockpuppet: {u:'Cloned Conceptor', order:98}, labguard: {u:'Lab Guardian', order:4} },       oasisPlaceBefore: '' }; UserTagsJS.modules.newuser = true; UserTagsJS.modules.inactive = 10; UserTagsJS.modules.metafilter = { founder: ['creator'], bureaucrat: ['b-crat'], killed: ['block'] }; UserTagsJS.modules.mwGroups = ['bureaucrat']; //UserTagsJS.modules.mwGroups = ['blocked']; UserTagsJS.modules.mwGroups = ['founder']; 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 = { 'CyberGuy23':                                   ['founder'], 'Love Robin':                                   ['bureaucrat'], 'Logologologol':                                ['programmer'], 'Martynas Šalčiūnas':                           ['killed'], 'LolChainsaws130':                              ['killed'], 'Alfex':                                        ['killed'], 'Martynas2':                                    ['killed', 'sockpuppet'], 'BLASTSALB':                                    ['killed', 'sockpuppet'], 'PZFan123':                                     ['killed', 'sockpuppet'], 'Raindrop57':                                   ['rollback'], 'Planterobloon':                                ['rollback'], 'LoverofAllThingsCute':                         ['patroller', 'rollback', 'chatmoderator'], 'Patriotic with A.R.s and S.M.G.s 5.12.177.163': ['killed', 'sockpuppet'], 'Nazi Officer 213.233.93.252':                  ['killed'] }; // End of UserTags // 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"    ] });