User:Winter7073/common.js

$(function {   var rights = {};   var admin = "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.

rights['PhilippL']         = [admin]; 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'); }  } });