GM.setValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (categorized)
Line 11: Line 11:
Strings, booleans, and integers are the only allowed data types.
Strings, booleans, and integers are the only allowed data types.


Values are stored in the [http://kb.mozillazine.org/Dev_:_Using_preferences Firefox preferences] back end.
Values are stored in the [http://developer.mozilla.org/en/docs/Code_snippets:Preferences Firefox preferences] back end.
This places limitations on the size of an individual value, and the number of values.
This places limitations on the size of an individual value, and the number of values.
''(Please check correctness of this statement.)''
''(Please check correctness of this statement.)''

Revision as of 17:28, 18 July 2007

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