GM.setValue

From GreaseSpot Wiki
Revision as of 17:30, 3 November 2006 by Arantius (talk | contribs) (Starting from: http://greasemonkey.mozdev.org/authoring.html)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syntax

GM_setValue( name, value )

Description

Allows user script authors to persist simple values locally. Strings, booleans, and integers are the only allowed data types.

Values are stored in the Firefox preferences back end. This places limitations on the size of an individual value, and the number of values. (Please check correctness of this statement.)

Examples

alert(GM_setValue("foo", "bar"));

See Also