<p>I'm trying to modify my GreaseMonkey script from firing on window.onload to window.DOMContentLoaded, but this event never fires.</p>

<p>I'm using FireFox 2.0.0.16 / GreaseMonkey 0.8.20080609</p>

<p><a href="https://stackoverflow.com/questions/59205/enhancing-stackoverflow-user-experience">This</a> is the full script that I'm trying to modify, changing:</p>

<pre><code>window.addEventListener ("load", doStuff, false);
</code></pre>

<p>to</p>

<pre><code>window.addEventListener ("DOMContentLoaded", doStuff, false);
</code></pre>

So I googled
greasemonkey dom ready
and the
first result
seemed to say that the greasemonkey script is actually running at "DOM ready" so you just need to remove the onload call and run the script straight away.
I removed the
```
window.addEventListener ("load", function() {
```
and
```
}, false);
```
wrapping and it worked perfectly. It's
much
more responsive this way, the page appears straight away with your script applied to it and all the unseen questions highlighted, no flicker at all. And there was much rejoicing.... yea.