GM.getValue

From GreaseSpot Wiki
Revision as of 17:25, 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_getValue( name, default )

Description

Retrieve a value set with GM_setValue. If the value is not found, default is returned instead. If default is not supplied, undefined is returned.

Examples

alert(GM_getValue("foo"));

See Also