MediaWiki:Wikia.js

/* Fixes user wikia.js and wikia.css files not loading in Oasis after upgrade to MediaWiki 1.19 */ if (!$('script[src*="title=User:' + wgUserName + '/wikia.js"]').length) { importScript('User:' + wgUserName + '/wikia.js'); } if (!$('link[href*="title=User:' + wgUserName + '/wikia.css"]').length) { importStylesheet('User:' + wgUserName + '/wikia.css'); }

/* Spoiler alert */ window.SpoilerAlert = { isSpoiler: function { return -1 != $.inArray('Spoiler', wgCategories); }