[Greasemonkey] Early Execution of GM scripts?
zboogs at gmail.com
Fri Apr 29 09:40:41 EDT 2005
I used this approach on ypslideoutmenus, way, way back in the day
(http://ypslideoutmenus.sourceforge.net/). I didn't notice that much
of an improvement and figured it was because the timer would not get a
chance to run unless the browser was blocked on network activity.
But I'll check into it again.
On 4/29/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 4/29/05, Scott R. Turner <srt at aero.org> wrote:
> > Is this useful for GM?
> > http://www.brothercake.com/site/resources/scripts/domready/
> To save others time, what this does is create a function which
> periodically (every 250 ms as distributed) checks to see whether
> certain things are true of the js context, and if so, calls your
> function. I've attached the JS include for convenience.
> This is an interesting approach, but it will not address all the
> motivations for finding a way to inject earlier.
> The best it'll do (assuming this catches even before DOMContentLoaded)
> is cut down on the flickering. It will not allow GM scripts to
> disable others, and similar desired functionality.
> I'll do a bit of testing to see whether it catches before
> DOMContentLoaded, but I just wanted to be clear what we can hope for
> with this.
> It's LGPL, since we're bumping licenses, now...
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
More information about the Greasemonkey