diff --git a/examples.json b/examples.json index 5d18ee1..fbab407 100644 --- a/examples.json +++ b/examples.json @@ -119,7 +119,8 @@ "description": "Press Ctrl+Shift+Y to send an event (Command+Shift+Y on a Mac).", "url": "https://github.com/mdn/webextensions-examples/tree/master/commands", "manifest_keys": [ - "commands" + "commands", + "background" ], "javascript_modules": [ { @@ -131,6 +132,38 @@ } ] }, + { + "name": "favourite-colour", + "description": "An example options ui", + "url": "https://github.com/mdn/webextensions-examples/tree/master/favourite-colour", + "manifest_keys": [ + "permissions", + "browser_action", + "options_ui", + "background" + ], + "javascript_modules": [ + { + "name": "browserAction", + "apis": [ + "onClicked" + ] + }, + { + "name": "runtime", + "apis": [ + "openOptionsPage" + ] + }, + { + "name": "storage", + "apis": [ + "storageArea/get", + "storageArea/set" + ] + } + ] + }, { "name": "inpage-toolbar-ui", "description": "Adds a browser action icon to the toolbar. Click the button to inject an in-page toolbar UI into the current webpage.",