From a08778159e5453e0bfeb3c0bbae3b81e9f0dca25 Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Fri, 8 Sep 2017 16:06:04 -0700 Subject: [PATCH] Some cleanup, and note from cross-browser compat --- menu-demo/README.md | 10 +++++++--- menu-demo/_locales/en/messages.json | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/menu-demo/README.md b/menu-demo/README.md index 24294d9..ca79920 100644 --- a/menu-demo/README.md +++ b/menu-demo/README.md @@ -1,9 +1,11 @@ -# context-menu-demo +# menu-demo -A demo of the [contextMenus API](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextMenus/). +A demo of the [menus API](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/). **This add-on injects JavaScript into web pages. The `addons.mozilla.org` domain disallows this operation, so this add-on will not work properly when it's run on pages in the `addons.mozilla.org` domain.** +**This add-on uses the `menus` namespace to access the functions it needs to create menu items. Note that Chrome, Edge, and Opera all use the `contextMenus` namespace for this, so this extension will not work in these browsers. For compatibility with these browsers, Firefox also offers the `contextMenus` namespace, so to make this extension work with other browsers, use `contextMenus`.** + ## What it does This add-on adds several items to the browser's context menu: @@ -20,9 +22,11 @@ like about:debugging. item is clicked. * one item that uses the "commands" property to open the add-on's sidebar. +It also adds one item to the browser's "Tools" menu. + ## What it shows -* How to create various types of context menu item: +* How to create various types of menu item: * normal * radio * separator diff --git a/menu-demo/_locales/en/messages.json b/menu-demo/_locales/en/messages.json index 5f66e39..709898f 100644 --- a/menu-demo/_locales/en/messages.json +++ b/menu-demo/_locales/en/messages.json @@ -1,11 +1,11 @@ { "extensionName": { - "message": "Context menu demo", + "message": "Menu demo", "description": "Name of the extension." }, "extensionDescription": { - "message": "Demonstrates the contextMenus API.", + "message": "Demonstrates the menus API.", "description": "Description of the add-on." },