Board Thread:General Coding Help/@comment-26124796-20150219075819

I put some JS code on my MediaWiki:Common.js. But I just don't want load that code on some specific pages/articles on same category (including Main Page and MediaWIki pages). So i make some adjustsments, but it seem doesn't work. How can I do now?

if (mediaWiki.config.get('wgPageName') !== 'Main_Page' && mediaWiki.config.get('wgCategories') !== 'Some Category' && mediaWiki.config.get('wgNamespaceNumber') !== 8) { importScript('MediaWiki:Test1.js'); } 