User:Doork/chat.js

if (mw.config.get('wgCanonicalSpecialPageName') === 'Chat') { importScriptPage('User:Doork/Doork-ChatCode','botcentral'); alert("Global JS loaded!"); }