erosman
erosman

Reputation: 7741

How to limit 'contextMenus' to 'http/https/about:newtab'?

documentUrlPatterns in menus/contextMenus use match patterns.

Not setting documentUrlPatterns would make it appear in about:newtab but then the menu would also appear in other unwanted pages (e.g. moz-extension:, other about:...).

What I am after is to show the context-menu on these pages only:

['http://*/*', 'https://*/*','about:newtab', 'about:blank']

Upvotes: 0

Views: 17

Answers (0)

Related Questions