GM.deleteValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Text replace - "top | back'' " to "")
m (Text replace - "Examples | See Also | Notes" to "")
Line 6: Line 6:
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>".
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]]
 


== Syntax ==
== Syntax ==

Revision as of 21:46, 3 February 2010


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


Syntax

GM_deleteValue( name )

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

Properties


name

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


Examples

Template:Samp

See Also

Notes

An issue that some may encounter on some platforms is that the values appear to not be deleted or set. This is usually due to a refreshing issue in the browser. If about:config is refreshed in the window/tab this should resolve any questions about stability of setting and deleting system preferences.