Skip to content

Commit

Permalink
Merge pull request mdn#408 from rebloor/examples_json_catch_up
Browse files Browse the repository at this point in the history
Additions to the list of examples
  • Loading branch information
Irene Smith authored Jun 24, 2019
2 parents 4e6af30 + 66b7122 commit 88b645e
Showing 1 changed file with 51 additions and 7 deletions.
58 changes: 51 additions & 7 deletions examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"tabs.onActivated",
"tabs.onUpdated",
"tabs.query",
"windows.getCurrent"
"tabs.Tab",
"windows.getCurrent",
"windows​.Window"
],
"name": "annotate-page"
},
Expand All @@ -21,7 +23,8 @@
"tabs.insertCSS",
"tabs.onUpdated",
"tabs.query",
"tabs.removeCSS"
"tabs.removeCSS",
"tabs.Tab"
],
"name": "apply-css"
},
Expand All @@ -34,7 +37,8 @@
"tabs.insertCSS",
"tabs.query",
"tabs.removeCSS",
"tabs.sendMessage"
"tabs.sendMessage",
"tabs.Tab"
],
"name": "beastify"
},
Expand Down Expand Up @@ -274,6 +278,16 @@
],
"name": "list-cookies"
},
{
"description": "Shows how to set up a single letter access key for a menu item.",
"javascript_apis": [
"i18n.getMessage",
"menus.update",
"menus.create",
"menus.onClicked"
],
"name": "menu-accesskey-visible"
},
{
"description": "Demonstrates adding and manipulating menu items using the menus API.",
"javascript_apis": [
Expand All @@ -288,7 +302,7 @@
"name": "menu-demo"
},
{
"description": "",
"description": "Shows how an extension can listen for the display of a menu and then add, remove, or update its menu items.",
"javascript_apis": [
"menus.create",
"menus.onClicked",
Expand All @@ -300,7 +314,29 @@
"name": "menu-labelled-open"
},
{
"description": "This example shows two methods of testing an extension: running tests from within the extension, and running tests from the command line using Karma",
"description": "Shows how to detect the page element at the cursor position and remove that element, or a parent element, from the page. This example includes use of the polyfill, illustrating cross-browser extension development.",
"javascript_apis": [
"menus.create",
"menus.onClicked",
"menus.getTargetElement",
"pageAction.openPopup",
"pageAction.show",
"tabs.executeScript"
],
"name": "menu-remove-element"
},
{
"description": "Illustrates how to retrieve a list of search engines and issue a search request, using search engine details added to the context menu for selected text.",
"javascript_apis": [
"search.search",
"search.get",
"menus.create",
"menus.onClicked"
],
"name": "menu-search"
},
{
"description": "This example shows two methods of testing an extension: running tests from within the extension, and running tests from the command line using Karma.",
"javascript_apis": [
"runtime.onMessage",
"runtime.sendMessage"
Expand Down Expand Up @@ -390,6 +426,13 @@
],
"name": "quicknote"
},
{
"description": "Shows how to get details about a request's TLS connection.",
"javascript_apis": [
"webRequest.getSecurityInfo"
],
"name": "root-cert-stats"
},
{
"description": "Demo of various runtime APIs.",
"javascript_apis": [
Expand Down Expand Up @@ -501,7 +544,7 @@
"name": "user-agent-rewriter"
},
{
"description": "",
"description": "Illustrates how an extension can register URL-matching content scripts at runtime.",
"javascript_apis": [
"contentScripts.register",
"runtime.onMessage",
Expand All @@ -524,7 +567,8 @@
"windows.getAll",
"windows.getCurrent",
"windows.remove",
"windows.update"
"windows.update",
"windows​.Window"
],
"name": "window-manipulator"
}
Expand Down

0 comments on commit 88b645e

Please sign in to comment.