User:Nerfmaster8/userRightsIcons.js

$(function {    var rights = {},    botTag = " Bot ",    imageControl = " Image Control ",    commentControl = " Comment Control ",    chatMod = " Chat Moderator ",    checkUser = " Check User ",    adminTag = " Admin ",    rollBack = " Rollback ",    VSTF = " VSTF ", councilor = " Councilor </a>", star = " Wikia Star </a>", founder = " Founder </a>";

// 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.

//Bots

rights["BonBot"]                  = [botTag], rights["Fluffle Bot"]             = [botTag, adminTag], rights["FlutterBot"]              = [botTag], rights["Foodbot"]                 = [botTag], rights["Grizeldroid"]             = [botTag], rights["Icecreambot"]             = [botTag, adminTag], rights["Lyra Botstrings"]         = [botTag, adminTag], rights["Noteworthy"]              = [botTag], rights["SweetieBot"]              = [botTag, adminTag], rights["URL"]                     = [botTag], rights["Wikia"]                   = [botTag], rights["WikiaBot"]                = [botTag], rights[String.fromCharCode(8747)] = [botTag, adminTag],

//Chat Moderators

rights["343 TheGuiltyProphet"]    = [councilor, chatMod, imageControl, rollBack], rights["Aerostar"]                = [chatMod], rights["AppleJon"]                = [chatMod], rights["CelestiaOfEquestria"]     = [chatMod], rights["Cherno Alpha"]            = [chatMod], rights["EHAN"]                    = [chatMod], rights["General Twilight Sparkle"] = [chatMod], rights["Juan The American Brony"] = [chatMod, rollBack], rights["Mistmane"]                = [chatMod], rights["Moonshine Stars"]         = [chatMod], rights["Nihilus Nix Naught"]      = [chatMod], rights["Novabomb1"]               = [chatMod], rights["Pony and meatball sub"]   = [chatMod, imageControl], rights["Professor Pickles"]       = [chatMod], rights["Rainbow Blitzz"]          = [chatMod], rights["Seaswirl10"]              = [chatMod, imageControl, rollBack], rights["SublimePie"]              = [chatMod], rights["The Candlekeeper"]        = [chatMod, commentControl],

//Administrators

rights["Bobogoobo"]               = [adminTag], rights["Dogman15"]                = [adminTag], rights["Foodbandlt"]              = [adminTag], rights["Hope(N Forever)"]         = [adminTag], rights["ImperfectXIII"]           = [adminTag], rights["Jonny Manz"]              = [adminTag], rights["Kinrah"]                  = [adminTag], rights["Rallinale"]               = [adminTag], rights["Shadowdemon137"]          = [star, adminTag], rights["Steph physarum"]          = [adminTag], rights["TheodoreRowy"]            = [founder], rights["TheUltimateH4M"]          = [adminTag], rights["Tulipclaymore"]           = [adminTag],

//Rollback

rights["0drake0"]                 = [rollBack], rights["Argorrath"]               = [rollBack], rights["Aura24"]                  = [rollBack], rights["Bullet Francisco"]        = [star, rollBack], rights["Drkdragonz66"]            = [councilor, rollBack], rights["Duo2nd"]                  = [rollBack], rights["Euphgeek"]                = [rollBack], rights["EvergreenFir"]            = [rollBack], rights["FoxofRarity"]             = [rollBack], rights["Interactive Booster"]     = [rollBack], rights["Pikmanipulator"]          = [rollBack], rights["Sentrakk"]                = [rollBack], rights["Vengir"]                  = [rollBack], rights["Verantha"]                = [rollBack],

//Comment control

rights["Dragon Theology"]         = [commentControl], rights["Filly Please"]            = [commentControl], rights["Guildmaster Grovyle"]     = [commentControl], rights["The Fennec Fox"]          = [commentControl],

//Image Control

rights["Bluelighting"]            = [imageControl], rights["Jasonbres"]               = [imageControl, rollBack], rights["Jr Mime"]                 = [VSTF, imageControl], rights["Pyrrha Omega"]            = [imageControl, rollBack, chatMod];

// 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'); }   } });

//*************** // Adds link to Special:Contributions for "Banned From Chat" tags //***************

if ($('span.tag:contains("Banned From Chat")').length == 1 && mw.config.get('wgCanonicalSpecialPageName') !== 'Contributions') { $('span.tag:contains("Banned From Chat")').wrap("</a>"); }

//*************** // Adds link to Special:Contributions for "Blocked" tags //***************

if ($('span.tag:contains("Blocked")').length == 1 && mw.config.get('wgCanonicalSpecialPageName') !== 'Contributions') { $('span.tag:contains("Blocked")').wrap("</a>"); }