GM.setValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (title underscore template)
m (categorized)
Line 22: Line 22:


* [[GM_getValue]]
* [[GM_getValue]]
[[Category:API Reference|S]]

Revision as of 03:30, 6 December 2006

Template:Underscore

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