[Greasemonkey] Removing anonymous event handlers

Aaron Boodman zboogs at gmail.com
Mon Dec 5 20:03:12 EST 2005


I wasn't able to access the del.icio.us script, but I imagine that you
could do what you want via unsafeWindow?

unsafeWindow.document.getElementsByTagName("a")[0].onclick = null;

- a

On 12/5/05, comex <comexk at gmail.com> wrote:
> > > unsafeWindow.rmPost = function(){return;};
> window.__defineSetter__('rmPost', function() {
>   // be evil, however that is possible
> });
>
> I'd like to know the answer to this question as well (as well as how
> it is possible to access GM_* within such a function, as was probably
> described some time ago).
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list