[Greasemonkey] Script scoping

Jeremy Dunck jdunck at gmail.com
Wed May 4 12:09:03 EDT 2005


On 5/4/05, Paul Roub <paul at roub.net> wrote:
> Easy enough for GM to do this -- GM has the list of notify-on-load
> scripts, and their subscribers.  

How does it have this list, before injecting the scripts which call to
register for notification?

And if we must inject to get the list, we're back to square one on the
ordering issue.

...
Perhaps we inject in any order, and if a request for notification
comes in for a script previously injected, we immediately call back to
notify.

This is starting to sound workable, but I still don't know that the
complexity it introduces is worth the benefit.

....
Again, can someone give an example where simply precompiling into a
single .user.js won't address the need?


More information about the Greasemonkey mailing list