MediaWiki:Wikia.js

$(".image-resize").each(function {	var a = $(this).children(".image-resize-new").text.split("_")		img = $(this).find("img");	if (!isNaN(Number(a[1])) && !isNaN(Number(a[1]))) {		img.attr({ width: a[0], height: a[1] });	} });

var WikiaNotificationMessage = ""; importScriptPage('WikiaNotification/code.js', 'dev');

var SocialMediaButtons = { position: 'top', colorScheme: 'color', buttonSize: 'default' }; importScriptPage('SocialIcons/code.js','dev');

function addMastheadTags { var rights = {}; // BEGIN LIST OF ACCOUNTS GIVEN EXTRA USER RIGHTS ICONS // GROUP 2

rights["CodPlayerRussia"] = ["Chat Moderator" "Admin"]; rights["Igor0The0Mii2"] = ["Chat Moderator","Admin"]; rights["RobbiePwns135"] = ["Bureaucrat","Admin", "Chat Moderator"]; rights["HomerTheGuyProHD"] = ["Bureaucrat","Admin"]; rights["Tigrus879"] = ["Admin", "Chat Moderator", "Rollback"]; rights["Justdancingsamuel"] = ["Admin"]; rights["PB&Jotterisnumber1"] = ["Admin"]; rights["Caleb40043"] = ["Admin"]; rights["MinecraftMonster"] = ["Chat Moderator","Admin"]; rights["Awildmew"] = ["Chat Moderator", "Admin"]; rights["Jamiem2001"] = ["Guy who founded this wiki", "Bureaucrat", "Admin"];

if (wgCanonicalSpecialPageName == "Contributions") { var user = wgPageName.substring(wgPageName.lastIndexOf("/")+1).replace(/_/g," "); } else { var 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;  } });