[Greasemonkey] Cross-script configuration data sharing

Aaron Boodman zboogs at gmail.com
Mon Jan 9 00:14:52 EST 2006


On 1/8/06, Johan Sundström <oyasumi at gmail.com> wrote:
> Back again; some excerpts:
>
> >>> Maybe scripts with the same namespace could share the same values?
> >>
> >> That would seem like a security issue.
> >
> > Indeed. Though extensions can access any data on your disk, so as long
> > as users and authors understand this, I would think this does not raise the
> > stakes much.
>
> I'd go for the more cautious approach on not robbing any scripts of
> their data privacy, unless they specifically opt in on it using GM_*
> support methods for it, be it via my suggested additional optional
> parameters to GM_setValue, or Lenny Domnitser's suggested (cleaner)
> GM_exportValue method. The more literate name has particular merit for
> making code easier to read and becoming more grep(1)able.

Point taken on making previously "private" data suddenly readable by
other user scripts. I had not considered that. Perhaps, if there is
ever another more performant and robust data storage mechanism than
GM_setValue, then that system can be globally read/write. Nobody would
have any expectations about that.

- a


More information about the Greasemonkey mailing list