[Greasemonkey] addEventListener example doesn't work?

Ivan Tubert-Brohman itub at cpan.org
Mon Sep 19 15:12:41 EDT 2005


I had a script derived from this example from
http://greasemonkey.mozdev.org/authoring.html :

(function() {
   window.addEventListener("load", function(e) {
     document.innerHTML = "Hello, world!";
   }, false);

and it used to work (I think it was with GM 0.3). Now after upgrading GM
and Firefox it doesn't. I'm using GM 0.5.3 with Firefox 1.0.6. I don't
get any error messages, but the event listener is just never called. Has
anyone had similar problems?


More information about the Greasemonkey mailing list