[Greasemonkey] [Help]How to replace an js method or event?
weide
wideweide at gmail.com
Thu Oct 6 01:08:11 EDT 2005
on 2005-10-5 23:50,John Plsek said the following:
> 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
>
Of course ,I have try each of them,but do not work
ps:I use greaseMonkey 0.6.2,Mozilla/5.0 (Windows; U; Windows NT 5.1;
zh-CN; rv:1.8b5) Gecko/20050928 Firefox/1.4
And the page is :http://www.cmfu.com/readchapter.asp?bu_id=110151&bl_id=5060
More information about the Greasemonkey
mailing list