Difference between revisions of "GM.setValue"
(remove "in older versions ...", just describe current version)
Revision as of 10:30, 3 November 2017
This method allows user script authors to persist simple values across page-loads.
Strings, booleans, and integers are currently the only allowed data types.
Since Greasemonkey 1.13 values are saved per userscript in a SQLite database . You can find the corresponding database by the userscript
basedir as defined in the
config.xml. The values are only accessible by opening the database is an SQLite reader, like add-on SQLite Manager.
Compatibility: Greasemonkey 0.3b+
function GM_setValue( name, value )
BooleanAny valid value of these types. Any other type may cause undefined behavior, including crashes.
Set the name foo to hold the value bar:
- Corresponding ticket for moving to SQLite: .