MediaWiki:Wikia.js

function addMastheadTags { var rights = {}; rights["Bashihbk01"]       = ["Main Editor];      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;  } });