GM.setValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(Starting from:
m (title underscore template)
Line 1: Line 1:
= Syntax =
= Syntax =

Revision as of 04:08, 4 November 2006



GM_setValue( name, value )


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.)


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

See Also