User:Olipro/monobook.js

function EQ2Newsfeedy { var replace = document.getElementById("eq2newsfeedy"); if (null != replace) { replace.innerHTML=' '; if (window.attachEvent) window.attachEvent("onbeforeunload",confirmexitnews); else window.onbeforeunload = confirmexitnews; } //alert(document.getElementById("eq2newsfeed").innerHTML); }

// if (window.addEventListener) window.addEventListener("load",addOnloadHook,false); // else if (window.attachEvent) window.attachEvent("onload",addOnloadHook);

addOnloadHook(EQ2Newsfeedy);