GM.listValues: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (display title fix)
m (Text replace - "{{Core samp" to "{{Samp")
Line 27: Line 27:


== Examples ==
== Examples ==
{{Core samp |1=<pre style="border: none; margin: inherit;">
{{Samp |1=<pre style="border: none; margin: inherit;">
GM_log(GM_listValues());
GM_log(GM_listValues());
</pre>}}
</pre>}}

Revision as of 19:36, 3 February 2010


Description

This API method retrieves an array of preference names that start with the branch's root.

Values are retrieved from the Firefox preferences back end and can be manually viewed by typing about:config in the address bar and searching for the preference name "greasemonkey.scriptvals.namespace/name.".

Examples | See Also | Notes

Syntax

GM_listValues()

Value: Function
Returns: String Array
Compatibility: Greasemonkey 0.8.1+
Parameters
Properties
  • There are currently no properties.

top

Examples

Template:Samp

top

An array of values used by a script: Template:Good samp

top

Equivalent: Template:Good samp

top

See Also

top