MediaWiki:Wikia.js

function ContentCheck { var autoconfirmed = false; var admin = false; var bureaucrat = false; var staff = false; var helper = false; var vstf = false; var voter = false;

for(i in wgUserGroups) { if(wgUserGroups[i] == 'autoconfirmed') {autoconfirmed = true;} if(wgUserGroups[i] == 'sysop') {admin = true;} if(wgUserGroups[i] == 'bureaucrat') {bureaucrat = true;} if(wgUserGroups[i] == 'staff') {staff = true;} if(wgUserGroups[i] == 'helper') {helper = true;} if(wgUserGroups[i] == 'vstf') {vstf = true;} if(wgUserGroups[i] == 'voter') {voter = true;}				}

if(bureaucrat == false && staff == false && voter == false && admin == false) { $('.conditionalcontent').css({'display': 'none'}) }

if(voter == true) { $('.conditionalcontent2').css({'display': 'none'}) }

if(bureaucrat == false && admin == false) { $('.conditionalcontent3').css({'display': 'none'}) } }

addOnloadHook(ContentCheck);

function AnonMessage { if(wgUserGroups == null) { $('.anonmessage').css('display', 'inline'); } } addOnloadHook(AnonMessage)

$(function {	var Leader = $(".WikiHeaderRestyle > nav .subnav-2 li a:contains('lead:')");

var Leadericon = ''; var newtext;

Leader.each(function {		var newtext = $(this).text.replace('lead:', ' ');		$(this).text(newtext);		$(this).before(Leadericon);		if($(this).text.length > 15){			$(this).siblings('img').css('padding-top','0px');		}	}); });