MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

$(function {   var rights = {};    rights["SilverHexxitFights"]   = ["Founder", "Bureaucrat", "Administrator", "Ectopus"],    rights["TerrariamcSwaggins"]   = ["Bureaucrat", "Administrator"],    rights["Jeff16306"]            = ["Administrator"],    rights["652Graystripe"]        = ["Moderator", "Treeokin"];    rights["Hunited"]        = ["Administrator", "The Peacekeeper"];

rights["TerrariamcSwaggins' Bot"]       = ["Bot"];

rights["Arthurtilly"]       = ["Moderator", "Night Mare"]; rights["ReviLeo"]       = ["Signal Drone"];

rights["Brick Creeper"]       = ["Cactus Soldier"];

rights["Moltenfire9113"]       = ["Skeletal Reaper"];

rights["TheFlamingScyther"]       = ["Rollback", "Treeokin"];

rights["DemonDestroyerGuild"]       = ["Merfolk Bunny"];

rights["Heisergroup"]       = ["Time Stomper"];

rights["Corrupt Moon"]       = ["Werewolf Bunny"];

rights["XxLegoTadhgxX"]       = ["Time Stomper"];

rights["TerrariaBoss"]       = ["Merfolk Bunny"];

rights["TrueCobalion"]       = ["Werewolf Bunny"];

if (typeof rights[wgTitle] != "undefined") { $('.UserProfileMasthead .masthead-info span.tag').remove; for (var i = 0, len = rights[wgTitle].length; i < len; i++) { $(' ' + rights[wgTitle][i] + ' ').appendTo('.masthead-info hgroup'); }   } });

/** * Replaces with the name of the user browsing the page. * For usage with Template:USERNAME. */ $(function {    if (!wgUserName) return;    $('span.insertusername').html(wgUserName); });