[Greasemonkey] Cross-script configuration data sharing

BachusII bachusii at gmail.com
Sat Jan 7 10:53:11 EST 2006


Oke, a different approach.

It occurs to me that when you want separate scripts to be able to access
each others data a fair amount of the code would be the same. Exactly
the situation where a library would come in handy.

Let user scripts keep the current method. Only the one script can
read/write its own data using GM_setValue and GM_getValue.
Give the library system its own data methods. GM_lib_setValue and
GM_lib_getValue
User scripts can store data either in their own dataspere, or in any one
of the included libraries dataspheres.

This should keep (most of) your data save from other scripts.

 

 

Groeten
BachusII at gmail.com

 

This disclaimer absolves us of absolutely everything ever. By reading
this sentence you hereby agree to whatever terms and conditions we see
fit to inflict upon you






More information about the Greasemonkey mailing list