[Greasemonkey] Real soon now: S3 script val store

Jeremy Dunck jdunck at gmail.com
Tue Apr 4 19:37:15 EDT 2006


On 4/4/06, Rod McGuire <mcguire at telerama.com> wrote:
> Quoting Jeremy Dunck <jdunck at gmail.com>:
>
> > I want to add a GM_setCloudValue(), which would use S3 as a backing
> > store, and which would require the user to configure GM to use their
> > account.
>
> I presume you would replicate in S3 prefs.js (for GM_setValue), the contents of
> the gm_scripts directory, and anything else that GM stores. That way your GM
> experience from 2 computers could be the same.

Nope, it'd be explicit -- setValue would act the same, setCloudValue
would be stored in the cloud.  I agree a separate extension for
syncing profile data would be neat, but that already exists as an FTP
thing-- and seems a natural *cough* extension for that one.
http://www.foxcloud.com/wiki/Main_Page

I'd want a way for cloud values to be specific to a particular script
or to be shared between scripts.  Maybe the user picks effective
namespaces for each script?  In GM right now, two scripts with the
same namespace and name still get distinct script val stores because
of the way that GM installs scripts.  I don't think that'd work for
cross-machine stores, since the ordinal naming on collisions wouldn't
be the same.

Another wrinkle is that there'd have to be some sort of locking or
syncing to deal with different machines updating the same val, etc. 
Bleh, getting complicated.

Anyway... I don't want it to be a separate extension.  ;-)


More information about the Greasemonkey mailing list