From f744cd00222cc2652797c68ed67a83274a53d44d Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Thu, 15 Jun 2017 11:48:46 -0700 Subject: [PATCH] Update examples.json --- examples.json | 75 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 71 insertions(+), 4 deletions(-) diff --git a/examples.json b/examples.json index 2185e31..d579583 100644 --- a/examples.json +++ b/examples.json @@ -1,4 +1,15 @@ [ + { + "javascript_apis": [ + "storage.local", + "tabs.onActivated", + "tabs.onUpdated", + "tabs.query", + "windows.getCurrent" + ], + "name": "annotate-page", + "description": "Displays a sidebar that lets you take notes on web pages." + }, { "javascript_apis": [ "pageAction.getTitle", @@ -29,13 +40,16 @@ { "javascript_apis": [ "bookmarks.create", + "bookmarks.onCreated", + "bookmarks.onRemoved", "bookmarks.remove", "bookmarks.search", "browserAction.onClicked", "browserAction.setIcon", "tabs.onActivated", "tabs.onUpdated", - "tabs.query" + "tabs.query", + "windows.onFocusChanged" ], "name": "bookmark-it", "description": "Adds a bookmark button to the toolbar. Click the button to toggle a bookmark for the current page." @@ -70,6 +84,15 @@ "name": "commands", "description": "Demonstrates using the commands API to set up a keyboard shortcut. The shortcut created is accessed using Ctrl+Shift+Y (Command+Shift+Y on a Mac)." }, + { + "javascript_apis": [ + "contextMenus.create", + "contextMenus.onClicked", + "tabs.executeScript" + ], + "name": "context-menu-copy-link-with-types", + "description": "Add a context menu option to links to copy the link to the clipboard, as plain text and as a link in rich HTML." + }, { "javascript_apis": [ "contextMenus.create", @@ -101,7 +124,7 @@ "cookies.set", "extension.getURL", "runtime.onMessage", - "tabs.executeScript", + "tabs.onActivated", "tabs.onUpdated", "tabs.query", "tabs.sendMessage" @@ -109,6 +132,15 @@ "name": "cookie-bg-picker", "description": "Allows the user to customize the background color and tiled pattern on sites the visit, and also saves their preferences via a cookie, reapplying them whenever they revisit a site they previously customized." }, + { + "javascript_apis": [ + "alarms.create", + "alarms.onAlarm", + "theme.update" + ], + "name": "dynamic-theme", + "description": "Dynamic theme example" + }, { "javascript_apis": [ "runtime.onMessage", @@ -144,7 +176,7 @@ "javascript_apis": [ "browserAction.onClicked", "runtime.openOptionsPage", - "storage.local" + "storage.sync" ], "name": "favourite-colour", "description": "An example options page, letting you store your favourite colour." @@ -259,8 +291,25 @@ }, { "javascript_apis": [ + "browserAction.onClicked", + "permissions.getAll", + "permissions.remove", + "permissions.request", + "runtime.getURL", + "tabs.create" + ], + "name": "permissions", + "description": "Demonstrates optional permissions using the permissions API." + }, + { + "javascript_apis": [ + "extension.getURL", + "proxy.onProxyError", "proxy.registerProxyScript", - "proxy.onProxyError" + "runtime.onMessage", + "runtime.sendMessage", + "storage.local", + "storage.onChanged" ], "name": "proxy-blocker", "description": "Uses the proxy API to block requests to specific hosts." @@ -282,6 +331,16 @@ "name": "selection-to-clipboard", "description": "Demonstrates how to write to the clipboard from a content script" }, + { + "javascript_apis": [ + "storage.local", + "webRequest.onAuthRequired", + "webRequest.onCompleted", + "webRequest.onErrorOccurred" + ], + "name": "stored-credentials", + "description": "Performs basic authentication by supplying stored credentials." + }, { "javascript_apis": [ "tabs.create", @@ -299,6 +358,14 @@ "name": "tabs-tabs-tabs", "description": "Demonstrates tab manipulation: opening, closing, moving, zooming tabs." }, + { + "javascript_apis": [ + "management.getAll", + "management.setEnabled" + ], + "name": "theme-switcher", + "description": "An example of how to use the management API for themes." + }, { "javascript_apis": [ "topSites.get"