MediaWiki:Wikia.js

function addMastheadTags { var rights = {}, user   = ""; rights["SaltNPepper"]      = ["Sensei"], rights["Non-existent User"] = ["Do not remove this line"]; /* "[rollback username]": ["ZX"], */ if (wgCanonicalSpecialPageName == "Contributions") { user = wgPageName.substring(wgPageName.lastIndexOf("/") + 1).replace(/_/g, " "); } else { user = wgTitle; }   if (typeof rights[user] != "undefined") { $('.UserProfileMasthead .masthead-info span.tag').remove; for (var i = 0, len = rights[user].length; i < len; i++) { $('' + rights[user][i] +               ' ').appendTo('.masthead-info hgroup'); }   } } $(function  {    if ($('#UserProfileMasthead')) {        addMastheadTags;    }    var fileref=document.createElement('script');    fileref.setAttribute("type","text/javascript");    fileref.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js");    /* Change the chat entry/exit phrase */    var text = $('.inline-alert').text;    text = text.replace("has joined the chat", "has entered the Ninjago Dojo"),    text.replace("has left the chat", "has left the Ninjago Dojo"),    text.replace("Welcome to the Ninjago Wiki chat", "Welcome to the Ninjago Dojo! Be nice to your fellow users! Just remember sweraing and bullying are prohibited on chat!");    $('.inline-alert').text(text);    /* For Meiko */    var str=getElementById("WikiaPage").innerHTML;    var n=str.replace("Meiko: Legendary Glatorian","Meiko");    document.getElementById("WikiaPage").innerHTML=n; });