[feature request] pref to overwrite default whitelist

Bug reports and enhancement requests
Post Reply
adrelanos
Posts: 3
Joined: Thu Sep 19, 2019 11:21 am

[feature request] pref to overwrite default whitelist

Post by adrelanos » Thu Sep 19, 2019 11:27 am

There are some default whitelist entries such as paypal.com, netflix.com and many others.

(file common/Policy.js function defaultOptions and file legacy/defaults.js)

Could you please add a feature, that if a specific environment variable is set, don't set these defaults and keep the default white list empty?

Related:
https://trac.torproject.org/projects/tor/ticket/31798
Last edited by adrelanos on Sat Sep 21, 2019 1:40 pm, edited 1 time in total.
Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

barbaz
Senior Member
Posts: 9279
Joined: Sat Aug 03, 2013 5:45 pm

Re: [feature request] environment variable to clear default whitelist

Post by barbaz » Thu Sep 19, 2019 6:07 pm

Sorry but there is currently no way for a WebExtension to read environment variables.
adrelanos wrote:
Thu Sep 19, 2019 11:27 am
Related:
https://trac.torproject.org/projects/tor/ticket/31798
This sounds like a Tor Browser issue, reporting to them was the right place.
*Always* check the changelogs BEFORE updating that important software!
-

adrelanos
Posts: 3
Joined: Thu Sep 19, 2019 11:21 am

Re: [feature request] environment variable to clear default whitelist

Post by adrelanos » Sat Sep 21, 2019 1:40 pm

Ok, understood.

Alternatively,

Could you please add a pref?

By pref I mean related to about:config. The default whitelist could be an about:config string. Such as:

Code: Select all

extensions.noscript.whitelist
Such a pref could then be added to user.js by Tor Browser developers and/or users.
Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

barbaz
Senior Member
Posts: 9279
Joined: Sat Aug 03, 2013 5:45 pm

Re: [feature request] pref to overwrite default whitelist

Post by barbaz » Sat Sep 21, 2019 4:49 pm

Unfortunately WebExtensions can't read about:config prefs either. :(

If there's anything for NoScript to do here, it would likely need to be based on its existing means to detect Tor Browser. (I'm not sure how that detection works.)
*Always* check the changelogs BEFORE updating that important software!
-

adrelanos
Posts: 3
Joined: Thu Sep 19, 2019 11:21 am

Re: [feature request] pref to overwrite default whitelist

Post by adrelanos » Mon Sep 23, 2019 7:51 am

I see.

In https://github.com/hackademix/noscript/ ... -533972482 I further changed my feature request as in "some mechanism that any webextension can use". Would you prefer to use https://github.com/hackademix/noscript/ ... -533972482 to avoid duplication?
Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

barbaz
Senior Member
Posts: 9279
Joined: Sat Aug 03, 2013 5:45 pm

Re: [feature request] pref to overwrite default whitelist

Post by barbaz » Wed Sep 25, 2019 2:20 am

adrelanos wrote:
Mon Sep 23, 2019 7:51 am
Would you prefer to use https://github.com/hackademix/noscript/ ... -533972482 to avoid duplication?
No, we would prefer the discussion be kept here, thanks.
*Always* check the changelogs BEFORE updating that important software!
-

Post Reply