MediaWiki:Wikia.js

/* Disable Image Upload Pop-Ups */ $(document).ready(function {	$('a.wikia-button.upphotos').unbind('click',UploadPhotos.showDialog); });

function PlaceholderLink { $('.wikiaPlaceholder a').attr('href', '/wiki/Special:Upload').unbind('click'); } $(PlaceholderLink);

/* Chat Window for Homepage */ $(".openchat div.button").click(function {  window.open('/wiki/Special:Chat', 'wikiachat', 'width=600,height=600,menubar=no,status=no,location=no,toolbar=no,scrollbars=no,resizable=yes');   return false; });

/* Show Admin Controls */ function AdminControl { if((wgUserGroups.indexOf("sysop")) != -1) { $('span.admin').css({"display": 'block'}); } } $(AdminControl);