On May 4, 12:17 pm, Shreevatsa <[email protected]> wrote:
> I'm wondering if there is another way to store values persistently,
> other than GM_setValue/GM_getValue, across browser sessions (and
> ideally across browsers as well!)
>
> * GM_setValue/GM_getValue do not (yet) work on Google Chrome. There
> are apparently workarounds using cookies or the localStorage feature;
> how do they work?
>
> * Even with these workarounds, for someone using both Firefox and
> Chrome (or just multiple Firefox profiles), values saved by a
> Greasemonkey script on one browser would not be available on the
> other.
>
> [The latter is because I have an amateurishly written script
> (http://userscripts.org/scripts/show/32442) that saves a list of 'seen
> movies' on IMDb; I'm wondering if there is a way to share this list
> between browsers.]
>
> Thanks for any help,
> Shreevatsa
On rereading the previous question, I realised it came out sounding
even more idiotic than I intended. How did I imagine such a magical
thing ("across browsers") would work? I was thinking of two kinds of
possibilities:
1. Store this information somewhere online. I believe this ought to be
possible with GM_xmlhttpRequest, except that Chrome seems to only
allow same-domain requests (so far:
http://code.google.com/p/chromium/issues/detail?id=18857
). I guess this makes it infeasible as far as Chrome is concerned, but
it would work for the case of multiple Firefox profiles?
2. Store this information on a file on disk, which both profiles (or
both browsers) could write to/read from. Is it correct that for
security reasons, Greasemonkey (or Firefox) does not allow scripts to
access files on disk?
Thanks,
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.