User:GamingFanatic/global.js

if (mw.config.get('wgCanonicalSpecialPageName') === 'Chat') { importScriptPage('User:Shining-Armor/chat.js', 'community'); } else { importScriptPage('User:Shining-Armor/scripts.js', 'community'); }