MediaWiki:Wikia.js

importScriptPage('RelatedDiscussionsModule/code.js', 'dev');

function addMastheadTags { var rights = {}; // BEGIN List of Accounts Given Extra User Rights Icons - Must list all tags

rights["Ynkrdlevin17"] = ["Bureaucrat", "Administrator"]; rights["Mrpietcaptain"] = ["Bureaucrat", "Administrator"]; rights["J1coupe"] = ["Bureaucrat", "Administrator"]; rights["NightHawk9001"] = ["Rollback", "Chat Mod"]; rights["Patts9009"] = ["Rollback", "Chat Mod"]; rights["Scrawland Scribblescratch"] = ["Administrator"]; rights["Meatholl"] = ["Administrator"]; rights["Loygansono55"] = ["Administrator"]; rights["Four4"] = ["Chat Mod"]; rights["Wachowman"] = ["Chat Mod"]; rights["Firebrand794"] = ["Chat Mod"]; rights["ShoopDaKev"] = ["Chat Mod"]; // 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;  } });