From f8df8c1b4aa5c316154559e33861877dc76e4459 Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Tue, 19 Apr 2016 20:54:48 -0700 Subject: [PATCH] added favourite-colour to examples.json --- examples.json | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) 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.",