How to configure manifest.json to make icon enabled on valid websites?

Which entries in manifest.json have to be configured so that the icon in the toolbar will only be enabled for the websites the addon is made to work for?

You’d use hide_matches or show_matches for your page_action https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/page_action

1 Like