Pixel Gun Wiki
Advertisement
Pixel Gun Wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// Tags
// WRITTEN BY User:Rappy_4187
 
 function addMastheadTags() {
    var rights  = {},
        user    = "";

    rights["Galli2001"]                     = ["Founder","Bureaucrat","Admin"],
    rights["ApplerGamers"]                  = ["Builder", "Honorary Founder"],
    rights["Coriidor5"]                     = ["Co-Founder","Bureaucrat","Admin"],
    rights["12Monster21"]                   = ["Bureaucrat","Admin"],
    rights["RemixMaster3.O"]                = ["Head Bureaucrat","Admin"],
    rights["GhastAssassin123"]              = ["Chat Moderator"],
    rights["TheMCGamer"]                    = ["Tribute"],
    rights["Cheese_Immortal"]               = ["Tribute"],
    rights["BLAHBLAHBLAH_AND_YAKYAKYAK"]    = ["Tribute"],
     rights["GoldMan27"]    = ["Tribute"],
     rights["TheMCGamer"]    = ["Tribute"],
    
    rights["Non-existent User"]             = ["Do not remove this line"];

 
    if (wgCanonicalSpecialPageName == "Contributions") {
        user = wgPageName.substring(wgPageName.lastIndexOf("/") + 1).replace(/_/g, " ");
    } else {
        user = wgTitle;
    }

    if (typeof rights[wgTitle] != "undefined") {
        // remove old rights
        $('.UserProfileMasthead .masthead-info span.tag').remove();
 
        for (var i = 0, len = rights[wgTitle].length; i < len; i++) {
            // add new rights
            $('<span class="tag" style="margin-left:10px;">' + rights[wgTitle][i] + '</span>').appendTo('.masthead-info hgroup');
        }
    }
}

$(function () {
    if ($('#UserProfileMasthead')) {
        addMastheadTags();
    }
});
Advertisement