User:Dragon695/addonload.js

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

// // Taken 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; */

//