MediaWiki:Wikia.js

SpoilerAlert = { isSpoiler: function { return -1 !== wgCategories.indexOf('Spoiler'); } }; importScriptPage('SpoilerAlert/code.js', 'dev');

importArticles({   type: 'script',    articles: [        'w:c:dev:AutoEditDropdown/code.js'    ] });

importArticles({   type: 'script',    articles: [        //...        'w:c:dev:FixMultipleUpload/code.js',        //...    ] }); function addMastheadTags { var rights = {}; // BEGIN List of Accounts Given Extra User Rights Icons - Must list all tags rights["IAmNothing712"]   = ["Admin","Bureaucrat"], rights["%E1%B8%A0w%E1%BA%B5ine_%E1%B8%B8%D9%8D%D9%8Dk%C6%A8_%C4%B9i%C4%B8e_%CF%BE%E1%BB%81%D0%BB%C8%91%E1%BB%81d"]       = ["Admin","Bureaucrat"]; rights["Ḡwẵine_Ḹٍٍkƨ_Ĺiĸe_Ͼềлȑềd"]       = ["Admin","Bureaucrat"]; rights["Ḡwẵine_Ḹٍٍkƨ_Ĺiĸe_Ͼềлȑềd"]       = ["Admin","Bureaucrat"]; rights["Ḡwẵine Ḹٍٍkƨ Ĺiĸe Ͼềлȑềd"]       = ["Admin","Bureaucrat"]; rights["Ḡwẵine Ḹٍٍkƨ Ĺiĸe Ͼềлȑềd"]       = ["Admin","Bureaucrat"]; rights["Gwaine-looks-like-cenred"]       = ["Admin","Bureaucrat"]; rights["SummerinGanymede"]       = ["Admin","Bureaucrat"]; rights["SurvivorHuey"]       = ["Admin","Bureaucrat"]; rights["Whoisrob"]  = ["Admin turned psycho","Blocked Troll","Racist scum"]; rights["Ometepe03"]   = ["Admin","Former Wiki Warrior"]; rights["Ckarimalis"]   = ["Admin","Survivor Wikia Finalist"]; rights["Zjzr"]   = ["Admin","Survivor Wikia Finalist"]; rights["Waterwecna"]   = ["Admin","Survivor Wikia Finalist"]; rights["Alik99"]   = ["Admin","Survivor Wikia Finalist"]; rights["TheHickman"]   = ["Admin","Survivor Wikia Winner"]; rights["Henzzy"]   = ["Admin","Survivor Wikia Finalist"]; rights["Lunarity"]   = ["Technician"]; rights["MorganaEmrys"]   = ["Wiki Warrior"]; rights["Mad Russell"]   = ["Admin","Former Wiki Warrior"]; rights["OrangeBirdMaster2"]   = ["Wiki Warrior"]; rights["DBWAWESOMEPOSSUM"]   = ["Admin","Former Wiki Warrior"]; rights["DramaOver"]   = ["Wiki Warrior"]; rights["Kaaitlyn"]   = ["Wiki Warrior"]; rights["David34"]   = ["Admin","Ready to kick some old poeple but","Former Wiki Warrior"]; rights["Chris7toppei"]   = ["Survivor Freak"]; // END List of Accounts Given Extra User Rights Icons // BEGIN Script to Remove Old Rights Icons & Insert New if (wgCanonicalSpecialPageName == "Contributions") { var user = wgPageName.substring(wgPageName.lastIndexOf("/")+1).replace(/_/g," "); } else { var user = wgTitle; } if (typeof rights[user] != "undefined") { // remove old rights $('.UserProfileMasthead .masthead-info span.tag').remove; for( var i=0, len=rights[user].length; i < len; i++) { // add new rights $('' + rights[user][i] +         ' ').appendTo('.masthead-info hgroup'); }   }  // END Script to Remove Old Rights Icons & Insert New }; $(function { if ($('#UserProfileMasthead')) {    addMastheadTags;  } });