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"] = ["Commander of the Third Reich"]; rights["Mrpietcaptain"] = ["Commander of the Third Reich"]; rights["J1coupe"] = ["Commander of the Third Reich", "The Doctor"]; rights["NightHawk9001"] = ["Rollback", "Chat Mod", "Master Rapper"]; rights["Patts9009"] = ["Rollback", "Chat Mod"]; rights["Scrawland Scribblescratch"] = ["Administrator"]; rights["Meatholl"] = ["Administrator", "Pope Sloth", "God"]; rights["Loygansono55"] = ["Administrator", "Master Rapper"]; rights["Four4"] = ["Chat Mod"]; rights["Wachowman"] = ["Chat Mod", "Macho Man"]; rights["Firebrand794"] = ["Chat Mod", "Global Saturation"]; rights["ShoopDaKev"] = ["Chat Mod", "Deadpool", "Adept Rapper"]; rights["Captain Warrior"] = ["Iron Man"]; rights["JPhil2.0"] = ["Sci Fi Aficionado", "Adept Rapper"]; rights["TheSteelerNation2"] = ["Ex-KGB"]; rights["Tesla Man"] = ["Ex-KGB"]; rights["RespectthePixel35] = ["Ex-KGB"];   rights["Hoagy"] = ["Ex-KGB"];    rights["Intrudgero98"] = ["Ex-KGB"];  // 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; } });