User:Death WarMachine/global.js

window.onload=function{document.getElementsByClassName( 'chat-join' )[0].getElementsByTagName( 'button' )[0].removeAttribute( 'onclick' ); document.getElementsByClassName( 'chat-join' )[0].getElementsByTagName( 'button' )[0].addEventListener( 'click', function { window.chatwindow = window.open( wgServer + '/wiki/Special:Chat', 'Chat', 'resizable=true' ); window.chatwindow.onload = function  { window.chatwindow.document.getElementById( 'WikiaPage' ).style.color = 'navy'; } })};