[Greasemonkey] API brainstorming: GM services?

Matt Labrum darktempler at gmail.com
Thu Sep 22 16:25:00 EDT 2005


this is a idea im quite liking . persistant objects could be used to "cache"
data , ease constantly loading settings with GM_getValue on every page load
, one would only have to read it once if it detects that object dosnt exist.

+1 to this :P

On 9/22/05, mark rickerby <coretxt at gmail.com> wrote:
>
> > One limitation I see with GM script is that they keep restarting. Of
> > course, there is GM_getValue and GM_setValue to store some state, but
> > there is no way of keeping initialized objects in memory between
> > pages.
>
> What about something like GM_getObject and GM_setObject? Or perhaps:
>
> var storage = GM_getSharedObject();
> var config = storage.getObject('mySettings');
>
> I could definitely see uses for that, especially if users didn't have
> to care how/where the objects are persisted...
>
> cheers,
> Mark
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list