User:Technical 13/SandBox/IRC-handler.js

var StartChatting = $('span#StartChatting a').text; if (StartChatting == "Start chatting!" && wgUserName != "null"){ var wgUserNamee = wgUserName.replace(' ', '_'); var hrefCurrent= $('span#StartChatting a').attr('href'); var hrefReplaced = hrefCurrent.replace('Leroy_Jenky.', wgUserNamee); $('span#StartChatting a').attr('href', hrefReplaced); }