tor-browser

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

menus_child.json (950B)


      1 [
      2  {
      3    "namespace": "menus",
      4    "permissions": ["menus"],
      5    "allowedContexts": ["content", "devtools"],
      6    "description": "The part of the menus API that is available in all extension contexts, including content scripts.",
      7    "functions": [
      8      {
      9        "name": "getTargetElement",
     10        "type": "function",
     11        "allowedContexts": ["content", "devtools"],
     12        "description": "Retrieve the element that was associated with a recent contextmenu event.",
     13        "parameters": [
     14          {
     15            "type": "integer",
     16            "description": "The identifier of the clicked element, available as info.targetElementId in the menus.onShown, onClicked or onclick event.",
     17            "name": "targetElementId"
     18          }
     19        ],
     20        "returns": {
     21          "type": "object",
     22          "optional": true,
     23          "isInstanceOf": "Element",
     24          "additionalProperties": { "type": "any" }
     25        }
     26      }
     27    ]
     28  }
     29 ]