Add option to block all scripts except 1st-party scripts

My config: Brave 1.77.101 with Chrome 135.0.7049.115, Windows 10 Home x64 22H2

The Block Scripts option in Shields is either all on or all off. There is no choice to allow 1st-party scripts (those from the same domain where the user chose to visit) while blocking 3rd-party scripts (retrieved from off-domain). Under the “Block scripts” option, if enabled, please add a sub-option to “Allow on-domain (1st party)”.

With Block Scripts enabled:

  • 1st-party sub-option not enabled: all scripts are all blocked.
  • 1st-party sub-option is enabled: 1st-party (on-domain) scripts are allowed while 3rd-party scripts (off-domain) are blocked.

For sites that I visit, I want their scripts to run, but I don’t want off-domains to run unless I decide otherwise during a web session.