MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ $(function {   var rights = {};    rights["Roadhawk"]   = ["Founder", "Bureaucrat", "Administrator"],    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); });