MediaWiki:ProfileTags

/* Any JavaScript here will be loaded for all users on every page load. */ // Written by User:Rappy_4187, Aion Wiki // Added support for Special:Contributions by Foodbandlt $(function {    var rights = {};    var admin = "Admin";    var bureaucrat = "Bureaucrat";    var staff = "Staff";    var vstf = "VSTF";    var rollback = "Rollback";    // Begin list of accounts given extra user rights icons    //    // Be sure that the last line listed for modified rights is followed by a semi-colon rather than a comma.   //Administrator    rights[':Skittleflake']          = [Crown-Prince],    rights['Someone else is an admin']     = [admin],   //Bureaucrat and VSTF    rights["Jr Mime"]                     = [bureaucrat, vstf],   //Bureaucrat    rights["Ozuzanna"]                    = [bureaucrat],   //Staff    rights["Rappy 4197"]                  = [staff],   //Rollback rights["Sannse"]                     = [rollback]; // End list of accounts given extra user rights icons if (wgPageName.indexOf("Special:Contributions") != -1) { newTitle = fbReturnToTitle.replace("Special:Contributions/", ""); unfinishedTitle = newTitle; while (unfinishedTitle.search("_") > 0) { unfinishedTitle = unfinishedTitle.replace("_", " "); }       userName = unfinishedTitle; } else { userName = wgTitle; userName.replace("User:", ""); }   if (typeof rights[userName] != "undefined") { // remove old rights $('.UserProfileMasthead .masthead-info span.tag').remove; for (var i = 0, len = rights[userName].length; i < len; i++) { // add new rights $(' ' + rights[userName][i] +               ' ').appendTo('.masthead-info hgroup'); }   } });