tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

aboutConfigPipPrefs.json (1369B)


      1 [
      2  {
      3    "namespace": "aboutConfigPipPrefs",
      4    "description": "experimental API extension to allow access to about:config preferences",
      5    "events": [
      6      {
      7        "name": "onPrefChange",
      8        "type": "function",
      9        "parameters": [
     10          {
     11            "name": "name",
     12            "type": "string",
     13            "description": "The preference which changed"
     14          }
     15        ],
     16        "extraParameters": [
     17          {
     18            "name": "name",
     19            "type": "string",
     20            "description": "The preference to monitor"
     21          }
     22        ]
     23      }
     24    ],
     25    "functions": [
     26      {
     27        "name": "getPref",
     28        "type": "function",
     29        "description": "Get a preference's value",
     30        "parameters": [
     31          {
     32            "name": "name",
     33            "type": "string",
     34            "description": "The preference name"
     35          }
     36        ],
     37        "async": true
     38      },
     39      {
     40        "name": "setPref",
     41        "type": "function",
     42        "description": "Set a preference's value",
     43        "parameters": [
     44          {
     45            "name": "name",
     46            "type": "string",
     47            "description": "The preference name"
     48          },
     49          {
     50            "name": "value",
     51            "type": "boolean",
     52            "description": "The new value"
     53          }
     54        ],
     55        "async": true
     56      }
     57    ]
     58  }
     59 ]