MediaWiki:Wikia.js

function addMastheadTags { var rights = {}; // BEGIN LIST OF ACCOUNTS GIVEN EXTRA USER RIGHTS ICONS // GROUP 2 rights["MrDelirious"]      = ["Fan of Violent Movies"]; rights["Road Runner1"]     = ["Janitor", "Waiter"]; rights["Dezaunio"]         = ["WWE Champion"] ; rights["Jacktheguy5"]      = ["Founder", "Page Manager"]; rights["Tominator777"]     = ["Co Founder", "Executive Page Manager, "Chef"];  // END LIST OF ACCOUNTS GIVEN EXTRA USER RIGHTS ICONS    if (wgCanonicalSpecialPageName == "Contributions") {      var user = wgPageName.substring(wgPageName.lastIndexOf("/")+1).replace(/_/g," ");    } else { var user = wgTitle; }    if (typeof rights[user] != "undefined") {       $('.UserProfileMasthead .masthead-info span.tag').remove;       for( var i=0, len=rights[user].length; i < len; i++) {         $('' + rights[user][i] +          ' ').appendTo('.masthead-info hgroup');      }    } }; $(function {  if ($('#UserProfileMasthead')) {    addMastheadTags;  } });