Board Thread:Wiki Management/@comment-9548103-20130226230549/@comment-4902297-20130303040029

Ḡwẵine Ḹٍٍkƨ Ĺiĸe Ͼềлȑềd wrote: Interesting, though I see you haven't tried putting it into MediaWiki:Wikia.js on it's own.

Copy this, this should definitely work:

function addMastheadTags { var rights = {}; // BEGIN List of Accounts Given Extra User Rights Icons - Must list all tags rights["Hoanganhminh"]                = ["Bureaucrat"], rights["MeVsZombiesMeWin"]            = ["Bureaucrat"], rights["Someone456"]                  = ["Bureaucrat"], rights["KernelFodder"]                = ["Bureaucrat"], rights["HeatBallerZ"]                 = ["Rollback"], rights["PvZBeast234"]                 = ["Rollback"], rights["ShadowEyes978"]               = ["Rollback"]; // 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;   } }); Is there anything I would need to change if I use it for a different wiki (besides the users)? I copied and pasted the code here, and replaced the users, but it still doesn't work.