Feature request: add option to set "Top page" as default value in "Enable these capabilities when top page matches" dropdown
This is a feature request to add an advanced option to NoScript that allows the user to choose the default value of "Enable these capabilities when top page matches" dropdown:
- ANY SITE (default)
- Top page
Currently, "ANY SITE" seems hardcoded. When browsing with JS disabled by default for all sites, and enabling JS only temporarily on specific sites (not globally) it is not very convenient to set capabilities granurlarly. Assume the settings are reset after each browsing session, for example after clicking a small clock icon next to CUSTOM, or using Tor Browser, Tails, LiveCD, etc. I realize such browsing mode is paranoid. Most users are probably happy with "ANY SITE" by default, or TRUSTED. But they apply capabilities globally. I think the requested option would improve usability for those who need more granular control to apply the principle of least privilege.
Prerequisites:
- "script" is disabled in DEFAULT tab in NoScript Options. This is just an example. The scenario is not limited to "script" capability only.
Steps to reproduce:
- Open https://www.gnu.org/ (just an example, this can be any website).
- Open NoScript popup by any means (like by clicking the NS icon in the toolbar).
- Hit CUSTOM for "...gnu.org"
Actual results:
- "Enable these capabilities when top page matches" dropdown has "ANY SITE" selected by default. If one wants to enable scripting from gnu.org only on gnu.org, and not on any other website that loads scripts from gnu.org, then 2 additional clicks are needed before doing that: 1st to open the dropdown, 2nd to select "...gnu.org".
Expected results: 2. "Enable these capabilities when top page matches" dropdown has "...gnu.org" selected by default. No additional clicks needed. The (not currently available) advanced option would need to be set to "Top page" in NoScript Options before executing these steps.
Tested on: NoScript 11.4.21, Tor Browser 12.0.5