GM.deleteValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (→‎Description: Plural of preference)
m (→‎Description: foo added)
Line 6: Line 6:
This [[API_reference|API]] method deletes an existing preference set by [[GM_setValue]].
This [[API_reference|API]] method deletes an existing preference set by [[GM_setValue]].


Values are deleted from the [http://developer.mozilla.org/en/docs/Code_snippets:Preferences Firefox preferences] back end and can be manually viewed by typing [[mozillazine:About:config|about:config]] in the address bar and searching for the preference name "<code>greasemonkey.scriptvals.[[Metadata_block#.40namespace|namespace]]/[[Metadata_block#.40name|name]].</code>".
Values are deleted from the [http://developer.mozilla.org/en/docs/Code_snippets:Preferences Firefox preferences] back end and can be manually viewed by typing [[mozillazine:About:config|about:config]] in the address bar and searching for the preference name "<code>greasemonkey.scriptvals.[[Metadata_block#.40namespace|namespace]]/[[Metadata_block#.40name|name]].foo</code>".


[[#Examples|Examples]] | [[#See_Also|See Also]] | [[#Notes|Notes]]
[[#Examples|Examples]] | [[#See_Also|See Also]] | [[#Notes|Notes]]

Revision as of 22:35, 14 February 2009

Template:Underscore


Greasemonkey Manual
Using Greasemonkey
Installing Scripts
Monkey Menu
Getting Help
User Script Authoring
Editing
Environment
API

Description

This API method deletes an existing preference set by GM_setValue.

Values are deleted 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.foo".

Examples | See Also | Notes

Syntax

GM_deleteValue( name )

Value: Function
Returns: undefined
Compatibility: Greasemonkey Trunk
Parameters
Properties
name
  • All properties are optional except name.

top

Properties


name

Value: String
Usage: name = "PropertyName";
  • Property name to delete.

top | back

Examples

GM_deleteValue("foo");

top

See Also

top

Notes

top