[Greasemonkey] Removing anonymous event handlers
Gavri Fernandez
gavri.fernandez at gmail.com
Mon Dec 5 06:10:55 EST 2005
Hi,
del.icio.us code adds an anonymous function to a link's "onlick" (
o.onclick = function(){ return rmPost(this) } )
And now, in my GM script, I can't remove the event like I did before (
o.onclick = null ) because I've got to do it the _right way_ in the
new Greasemonkey versions. And I don't have a function pointer I can
pass to removeEventListener().
But the web-page did it the wrong way and I can't help that, can I?
(This is beginning to sound like a rant. Sorry.)
Isn't this going to be a problem for many of the scripts out there? Or
is there an easy way to get around this?
http://userscripts.org/scripts/source/1777.user.js (Check out the
script. It's only two lines and a for-loop. And it's broken. Don't
install.)
Thanks.
--
gavri
http://www.livejournal.com/users/ga_woo/
More information about the Greasemonkey
mailing list