User:Quarl/addonload.js

// addOnloadHook is defined in http://en.wikipedia.org/skins-1.5/common/wikibits.js

/*

// from http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/addOnloadFunction.js

//

var addOnloadFunction=function(f) { if (window.addEventListener) window.addEventListener("load",f,false); else if (window.attachEvent) window.attachEvent("onload",f); else { var oldOnload='_old_onload_'+addOnloadFunction.uid; addOnloadFunction[oldOnload] = window.onload ? window.onload : function {}; window.onload = function { addOnloadFunction[oldOnload]; f; } ++addOnloadFunction.uid; } } addOnloadFunction.uid=0;

addOnloadHook = addOnloadFunction;

//

//