GM.deleteValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (→‎Description: foo added)
m (→‎Syntax: Compatibility updated from broken link by Arantius.)
Line 16: Line 16:
:Value: Function
:Value: Function
:Returns: undefined
:Returns: undefined
:Compatibility: [[Version_history#Trunk|Greasemonkey Trunk]]
:Compatibility: [[Version_history#0.8.20090123.1|Greasemonkey 0.8.20090123.1]]


:{| cellpadding="5" style="border-style:solid; background:#FFFFE0;"
:{| cellpadding="5" style="border-style:solid; background:#FFFFE0;"

Revision as of 18:32, 18 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 0.8.20090123.1
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