MediaWiki:Common.js/embedirc.js

//BEGIN IRC CODE ///HERE IS THE IRC REPLACER. Adds Embedded IRC to RS:IRC made by Green Reaper & ShadowTale function onloadhookcustom { var replace = document.getElementById("IRCReplace"); if (null != replace) { var getvalue = replace.getAttribute("class"); var nick = (wgUserName == null) ? ('RSW-Visitor-' + Math.floor(Math.random * 10)) : wgUserName.replace(/ /g, '_'); replace.innerHTML=' '; } }

if (window.addEventListener) window.addEventListener("load",onloadhookcustom,false); else if (window.attachEvent) window.attachEvent("onload",onloadhookcustom); //END IRC CODE