The GM_set|getValue functions are useful for storing values across different HTML5 'zones'(?) eg http vs https or different domains/subdomains.
Also for permanence. IIRC some privacy-related addons regularly clear localStorage since they're increasingly being used as an alternative to cookies for tracking (as is flash storage too). Privacy too. If you put values into localStorage, websites within that 'zone' are able to both read from and write to these values. Can get tricky if you both try to use the same names. Also IIRC there may be some reserved names for localStorage but I might just be making that up in my imagination :P On the flip-side to this, "out of the box", GM_get|setValue is Greasemonkey-specific, therefore also Firefox (and similar) specific too; localStorage should work on any HTML5-enabled browser (eg Chrome and recent versions of Opera). I think that's most of the points. If I've missed anything please do chime in :) Kwah On 27 Sep 2011 18:46, "Robert" <[email protected]> wrote: Local Storage. > Tnx! That was what I am looking for. Just an additional question: in the scripts I viewed, I only saw GM_get/setValue. Is there an advantage of using it compared to local storage? With other words: does it make sense to keep using GM_get/setValue? Tnx, Robert -- You received this message because you are subscribed to the Google Groups "greasemonkey... -- 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.
