[Greasemonkey] Backups and sharing GM installs on multiplemachines

Jeremy Dunck jdunck at gmail.com
Tue Apr 5 23:19:13 EDT 2005

On Apr 5, 2005 4:42 PM, Aaron Boodman <zboogs at gmail.com> wrote:
> On Apr 5, 2005 2:36 PM, Michael Bierman <greasemonkey at thebiermans.net> wrote:
> > >> Unfortunately, I don't think this is possible without going a lot deeper
> > into Mozilla and hosting the javascript interpreter directly.<<
> >
> > Well, that would be one way to do it--maybe the best way.  The other is just
> > to look for variables that are defined as globals. That just requires a text
> > parser.
> I should have been clearer. AFAIK (which might be wrong - but I
> couldn't find other information), the interfaces to do this are not
> exposed to javascript.

I think he just meant we could preprocess the script files before
injecting them, prefixing "first" instances of variables w/ "var". 
Which would be basically require a JS parser and be really hard, and I
don't wanna.  :)

More information about the Greasemonkey mailing list