User:Ian/monobook.js: Difference between revisions
< User:Ian
(Hmm) |
No edit summary |
||
Line 2: | Line 2: | ||
function siteBotInterfacePath(){ return '/'; } | function siteBotInterfacePath(){ return '/'; } | ||
function hookEvent(hookName, hookFunct) { | |||
if (window.addEventListener) { | if (window.addEventListener) { | ||
window.addEventListener(hookName, hookFunct, false); | window.addEventListener(hookName, hookFunct, false); | ||
Line 8: | Line 8: | ||
window.attachEvent("on" + hookName, hookFunct); | window.attachEvent("on" + hookName, hookFunct); | ||
} | } | ||
} | } | ||
document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
Revision as of 01:39, 12 June 2007
function siteArticlePath(){ return '/index.php'; } function siteBotInterfacePath(){ return '/'; } function hookEvent(hookName, hookFunct) { if (window.addEventListener) { window.addEventListener(hookName, hookFunct, false); } else if (window.attachEvent) { window.attachEvent("on" + hookName, hookFunct); } } document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');