[Greasemonkey] Execution Order - q on addEvenListener

Thom Wetzel thomw at lmnopc.com
Tue Aug 16 13:02:14 EDT 2005

That popup article is brilliant.  I try to avoid using popups, but this 
just went into the toolbox just in case.


P.S. I hate how smart you are... ;)

Aaron Boodman wrote:

>On 8/16/05, Chris Hayes <chayes at antenna.nl> wrote:
>> {    alert('in function');
>>  return;
>> }
>Stop doing this! Stop! Stop! Stop! It no longer works in Greasemonkey
>0.5 because you cannot add arbitrary properties to DOM objects. But
>beside that, it is totally silly. You don't need it. You don't want
>it. You are making it way more difficult than it needs to be:
>function getBannedUsers() { /* blah */ }
>window.addEventListener("load", getBannedUsers, true);
>End of story. This is in every single online reference to the DOM.
>It's in every Mozilla DOM reference. Who is making up this wacky
>window.foo = blah stuff?
>I think I may need to write a http://youngpup.net/2003/popups -style
>rant about this. Whoever started this meme needs to be shot.

More information about the Greasemonkey mailing list