[Greasemonkey] addEventListener example doesn't work?

Ryan Forsythe ryan at flamingweasel.com
Mon Sep 19 12:55:34 EDT 2005


I've had exactly the same problem. My workaround was like so:

if (!window.addEventListener('load', function() { scan(); }, true)) {
   scan();
}

So if there's no addEventListener, the scan function just runs when  
GM loads the script.

--Ryan



More information about the Greasemonkey mailing list