User:Winter7073/wikia.js

// ******************* // Custom adoption response buttons // ******************* if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/d/d4/ImageButton.png/revision/latest?cb=20150416181031", "speedTip": "Picture (thumb)", "tagOpen": "", "tagClose": "", "sampleText": ""}; }

// *********************** // End custom buttons // ***********************

function addMastheadTags { var rights = {}; // BEGIN List of Accounts Given Extra User Rights Icons

rights["PhilippL"]               = ["Inactive"];

// END List of Accounts Given Extra User Rights Icons // BEGIN Script to Remove Old Rights Icons & Insert New if (wgCanonicalSpecialPageName == "Contributions") { var user = wgPageName.substring(wgPageName.lastIndexOf("/")+1).replace(/_/g," "); } else { var user = wgTitle; } if (typeof rights[user] != "undefined") { // remove old rights $('.UserProfileMasthead .masthead-info span.tag').remove; for( var i=0, len=rights[user].length; i < len; i++) { // add new rights $('' + rights[user][i] +         ' ').appendTo('.masthead-info hgroup'); }   }  // END Script to Remove Old Rights Icons & Insert New }; $(function { if ($('#UserProfileMasthead')) {    addMastheadTags;  } }); // END CREATING ADDITIONAL USER RIGHTS ICONS FOR PROFILEMASTHEADS //