[Greasemonkey] scrolling.user.js (scroll a web page)
Rod McGuire
mcguire at telerama.com
Sat Sep 23 16:01:48 EDT 2006
Quoting extrabyte <extrabyte at libero.it>:
> I have installed Greasemonkey in Firefox 1.5.0.7. I am successful to make to
> work only simple script (alert("hello world");). Now I would want to scroll
> this web page: http://www4.soccerstand.com . I have tried a JavaScript that
> works for web pages, but it does not work with Greasemonkey.
> Unfortunately I've not resolved...
First off, you should read and understand "Avoid Common Pitfalls in
Greasemonkey"
http://www.oreillynet.com/lpt/a/6257
To make your script start to work you should change:
setInterval("scrollwindow()",10)
window.onload=initialize;
to:
setInterval(scrollwindow,10)
window.addEventListener('load', initialize, false)
More information about the Greasemonkey
mailing list