Source code
Revision control
Copy as Markdown
Other Tools
[
{
"namespace": "aboutConfigPipPrefs",
"description": "experimental API extension to allow access to about:config preferences",
"events": [
{
"name": "onPrefChange",
"type": "function",
"parameters": [
{
"name": "name",
"type": "string",
"description": "The preference which changed"
}
],
"extraParameters": [
{
"name": "name",
"type": "string",
"description": "The preference to monitor"
}
]
}
],
"functions": [
{
"name": "getPref",
"type": "function",
"description": "Get a preference's value",
"parameters": [
{
"name": "name",
"type": "string",
"description": "The preference name"
}
],
"async": true
},
{
"name": "setPref",
"type": "function",
"description": "Set a preference's value",
"parameters": [
{
"name": "name",
"type": "string",
"description": "The preference name"
},
{
"name": "value",
"type": "boolean",
"description": "The new value"
}
],
"async": true
}
]
}
]