diff --git a/context-menu-demo/README.md b/context-menu-demo/README.md index a748a5d..35bc114 100644 --- a/context-menu-demo/README.md +++ b/context-menu-demo/README.md @@ -9,15 +9,12 @@ This add-on adds several items to the browser's context menu: * one shown when there is a selection in the page, that logs the selected text when clicked. * one shown in all contexts, that is removed when clicked. -* two "radio" items that are shown when a page under "developer.mozilla.org" -is loaded. These items are grouped using a separator item on each side. +* two "radio" items that are shown in all contexts. +These items are grouped using a separator item on each side. One radio item adds a blue border to the page, the other adds a green border. * one "checkbox" item, shown in all contexts, whose title is updated when the item is clicked. -Note that the "documentUrlPatterns" option is not -currently supported in Firefox. - ## What it shows * How to create various types of context menu item: diff --git a/context-menu-demo/background.js b/context-menu-demo/background.js index 11cf25e..456db8e 100644 --- a/context-menu-demo/background.js +++ b/context-menu-demo/background.js @@ -24,9 +24,6 @@ function onRemoved() { /* Create all the context menu items. - -Note that the "documentUrlPatterns" option is not -currently supported in Firefox. */ chrome.contextMenus.create({ id: "log-selection", @@ -43,7 +40,6 @@ chrome.contextMenus.create({ chrome.contextMenus.create({ id: "separator-1", type: "separator", - documentUrlPatterns: ["*://developer.mozilla.org/*"], contexts: ["all"] }, onCreated); @@ -51,7 +47,6 @@ chrome.contextMenus.create({ id: "greenify", type: "radio", title: chrome.i18n.getMessage("contextMenuItemGreenify"), - documentUrlPatterns: ["*://developer.mozilla.org/*"], contexts: ["all"], checked: true }, onCreated); @@ -60,7 +55,6 @@ chrome.contextMenus.create({ id: "bluify", type: "radio", title: chrome.i18n.getMessage("contextMenuItemBluify"), - documentUrlPatterns: ["*://developer.mozilla.org/*"], contexts: ["all"], checked: false }, onCreated); @@ -68,7 +62,6 @@ chrome.contextMenus.create({ chrome.contextMenus.create({ id: "separator-2", type: "separator", - documentUrlPatterns: ["*://developer.mozilla.org/*"], contexts: ["all"] }, onCreated);