[Greasemonkey] Script scoping
Jeremy Dunck
jdunck at gmail.com
Tue May 3 09:02:00 EDT 2005
On 5/3/05, Scott R. Turner <srt at aero.org> wrote:
> On Mon, 2 May 2005, Jeremy Dunck wrote:
> > The only downside of this is that your first script has to be
> > injected, err, first. Which is the same as it was before, modulo the
> > scoping issue.
>
> I'm facing many of these issues in building the GM scripting extension.
> One approach is to hook any script using another script to onload; I think
> that guarantees the other script will be fully loaded.
Yeah it does, but only works to one level of dependency.
...Although I find myself agreeing with Mark that script dependencies
are maybe more complicated than we expect GM to serve. And so I
repeat:
"[Are you s]ure you can't preprocess ...your user.js to just include all the
stuff you want into the deployed user.js file?
Otherwise, I think it's extension time... Sorry to waffle on this.
More information about the Greasemonkey
mailing list