Especially during development it’s annoying to reach the option page of a Firefox addon:
- Hamburger
- Addons and Themes
- ...
- Options
There should be a faster way. At least for your own Add-ons you can quite easily add an “Options” menu item to the browser action:
browser.contextMenus.create({
title: 'Options',
contexts: ['browser_action'],
onclick: () => {
browser.runtime.openOptionsPage();
},
});
Additionally to have to add a new permission to the manifest.json file:
"permissions": ["contextMenus"],
That was easy!
Top comments (0)