[Greasemonkey] [Help]How to replace an js method or event?
John Plsek
jplsek at iinet.net.au
Thu Oct 6 04:55:20 EDT 2005
weide wrote:
> 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
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
Sorry, just that you posted it TWICE with the // in place ... thought
you were a noob
my mistake ...
More information about the Greasemonkey
mailing list