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

// UserTags window.UserTagsJS = { modules: {}, tags: { bureaucrat: {f:'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:5}, sockpuppet: {u:'Cloned Conceptor', order:6}, labguard: {u:'Wiki Guardian', order:4}, critic: {u:'Critic', order:1/0}, artist: {u:'Artist', order:2/0} },       oasisPlaceBefore: '' }; UserTagsJS.modules.newuser = true; UserTagsJS.modules.inactive = 10; UserTagsJS.modules.metafilter = { 'bureaucrat': ['founder'], 'sysop': ['bureaucrat'], 'labguard': ['patroller', 'rollback', 'chatmoderator'] }; 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 = { 'Anonymoustyd':                                 ['bureaucrat'], 'BLASTSALB':                                    ['killed', 'sockpuppet'], 'CyberGuy23':                                   ['founder'], 'Commando_Conceptor_L5_5.12.159.141':           ['killed', 'sockpuppet'], 'Derpinator9001':                               ['artist'], 'ItsBloonTasty':                                ['critic', 'bureaucrat'], 'Logologologol':                                ['programmer', 'critic', 'artist'], 'LolChainsaws130':                              ['killed'], 'LoverofAllThingsCute':                         ['labguard'], 'Martynas Šalčiūnas':                           ['killed'], 'Martynas2':                                    ['killed', 'sockpuppet'], 'Meta07':                                       ['bureaucrat'], 'Mr.OAH':                                       ['artist'], '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 //Wall and forum tags window.MessageWallUserTags = { tagColor: '#FF0', glow: true, glowSize: '15px', glowColor: '#FF0', users: { 'CyberGuy23': 'The Creator', 'Anonymoustyd': 'Conception Grandmaster', 'Logologologol': 'Conception Master', 'ItsBloonTasty': 'Conception Grandmaster', 'Meta07': 'Conception Grandmaster', 'LoverofAllThingsCute': 'Wiki Guardian', 'Planterobloon': 'Conception Guardian', 'Doue': 'Lab Operator', 'Kamarin': 'Lap Operator' } };

// IMPORT importArticles({   type: 'script',    articles: [          "w:c:dev:TimedSlider/code.js",          "w:c:dev:UserTags/code.js",          "w:c:dev:AjaxRC/code.js",          "w:c:dev:Verbatim/code.js",          "w:c:dev:Countdown/code.js",          "u:dev:MessageWallUserTags/code.js"    ] });

// Svg avatar hack function updateAvatarsToSvg { $("[src*='px-1841894.png'].avatar").attr("src", "http://images.wikia.com/bloonsconception/images/c/c0/AVA8.svg?cb=" + new Date.getTime); } updateAvatarsToSvg; $("body").on("DOMNodeInserted", "#WikiaRail > section", function {	updateAvatarsToSvg; });