From eb6e5a2e231e23f4b262c58be74ef4456cbb1842 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Mon, 25 Mar 2019 20:26:17 +1300 Subject: [PATCH 1/2] Details of the latest additions to the list of examples and adding missing example descriptions. --- examples.json | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/examples.json b/examples.json index b087c86d..e2b49212 100644 --- a/examples.json +++ b/examples.json @@ -303,6 +303,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": [ @@ -317,7 +327,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", @@ -329,7 +339,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" @@ -419,6 +451,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": [ @@ -530,7 +569,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", From 66b7122ae96abad9df7b685fd8f77716dff3add9 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Fri, 19 Apr 2019 05:44:37 +1200 Subject: [PATCH 2/2] Additional information about the use of properties and types in examples --- examples.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/examples.json b/examples.json index e2b49212..63abe275 100644 --- a/examples.json +++ b/examples.json @@ -6,7 +6,9 @@ "tabs.onActivated", "tabs.onUpdated", "tabs.query", - "windows.getCurrent" + "tabs.Tab", + "windows.getCurrent", + "windows​.Window" ], "name": "annotate-page" }, @@ -21,7 +23,8 @@ "tabs.insertCSS", "tabs.onUpdated", "tabs.query", - "tabs.removeCSS" + "tabs.removeCSS", + "tabs.Tab" ], "name": "apply-css" }, @@ -34,7 +37,8 @@ "tabs.insertCSS", "tabs.query", "tabs.removeCSS", - "tabs.sendMessage" + "tabs.sendMessage", + "tabs.Tab" ], "name": "beastify" }, @@ -592,7 +596,8 @@ "windows.getAll", "windows.getCurrent", "windows.remove", - "windows.update" + "windows.update", + "windows​.Window" ], "name": "window-manipulator" }