GM_listValues

From GreaseSpot
Jump to: navigation, search


Contents

[edit] Description

This method retrieves an array of preference names that this script has stored. See GM_setValue for details on the storage of these values.

Compatibility: Greasemonkey 0.8.1+

[edit] Syntax

function GM_listValues( )

[edit] Arguments

None.

[edit] Returns

Array of Strings

[edit] Examples

GM_log(GM_listValues());

An array of all values used by a script:

var vals = [];
for each (var val in GM_listValues()) {
  vals.push(GM_getValue(val));
}

[edit] See Also

Personal tools