- Edited
Feature Request: Extension Permission - On Click
The "On Click" extension permission would only run the extension when it's icon is clicked. The permission should remain granted until the page is no longer loaded or the tab is closed.
Chrome offers this:
Use case:
I would like to have the Wayback Machine extension installed, but it loads a bunch of information about the current page on every visit - using bandwidth and giving away my browsing history. This extension is only useful to me on some pages, but I wont know ahead of time which sites I need to use it so I can't whitelist them.
If I use the current "Ask for every site" permission, the permission dialog pops up on every new page I visit. If I deny it for that page on one visit, then end up on a page that is no longer available on another visit, I would have to go through the settings to enable it for that site. If I allow it for a site, it now runs for every page on that site, every time I visit.
Other extension types that this works well for:
- Reader mode / dark mode / Unclutter type extensions
- Cookie / local storage / websocket / service worker / site information extensions (IP Address and Domain Information, Wappalyzer, ...)
- Developer tools extensions
- Bookmarking / save for later (SingleFile]/ share this type extensions
- any extension I "may" want to run on any given page but doesn't need to run at all if I don't use it on that page
- any extension that is useful on any random website that I don't want to grant permanent "Allow for all websites" permission and don't want to deal with the permission dialog for every site if I use the "Ask for every site" permission