User:Deltaneos/global.js

/* get all personal code files in chat */ /* Important: you must click the chat button in the rail for this to work. */ /* Very important: Chat is still a beta feature. Chat hacks will likely break as the feature is changed and updated. */ $(setTimeout('ChatCheck', 200)); function ChatCheck { if($('.chat-join button').length != 0) { $('.chat-join button').replaceWith('Join the Chat'); } else { setTimeout('ChatCheck', 200); } } function OpenChatWindow { window.chatwindow = window.open('/wiki/Special:Chat'); window.chatwindow.onload = function {window.chatwindow.$('body').prepend(' /*<![CDATA[*/@import "http://community.wikia.com/index.php?title=User:' + wgUserName + '/global.css";/*]]>*/ /*<![CDATA[*/@import "' + wgServer + '/index.php?title=User:' + wgUserName + '/wikia.css";/*]]>*/ ');} }

importScriptPage('User:Monchoman45/ChatHacks.js', 'community');