[Greasemonkey] [Help]How to replace an js method or event?
John Plsek
jplsek at iinet.net.au
Thu Oct 6 02:50:58 EDT 2005
weide wrote:
> eh,there is no use in greasemonkey,I just copy the code from other js
> file.
> And my quetion is how to replace a javascript
> method(Nextpage-->NextPageForFirefox),or event(set the
> document.onkeydown to NextPageForFireFox)
>
> I try the code down,but it not work:(
>
> //window.addEventListener('onkeydown', NextPageForFireFox, true)
> //document.onkeydown=NextPageForFireFox;
>
sorry about the last two posts, it's late (early?) and I forgot to make
them plain text!!!
anyway, have you tried removing the // from those two lines?
John
More information about the Greasemonkey
mailing list