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'); importArticles({   type: 'script',    articles: [        'u:dev:DisableBotMessageWalls/code.js'    ] }); function addMastheadTags { var rights = {}; // BEGIN LIST OF ACCOUNTS GIVEN EXTRA USER RIGHTS ICONS // GROUP 2 rights["Shyster66"] = ["SML Founder"]; 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;  } });