User:Ana Rainstorm/global.js

var chatJoin = $('.chat-join') if (chatJoin.length) { chatJoin.find('a') .off('click').on('click', function { window.chatwindow = window.open('/wiki/Special:Chat?useskin=wikia', 'chat', wgWikiaChatWindowFeatures); window.chatwindow.onload = function  { window.chatwindow.importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); } }); }