Page 1 of 1

[feature request] pref to overwrite default whitelist

Posted: Thu Sep 19, 2019 11:27 am
by adrelanos
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

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

Posted: Thu Sep 19, 2019 6:07 pm
by barbaz
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.

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

Posted: Sat Sep 21, 2019 1:40 pm
by adrelanos
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.

Re: [feature request] pref to overwrite default whitelist

Posted: Sat Sep 21, 2019 4:49 pm
by barbaz
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.)

Re: [feature request] pref to overwrite default whitelist

Posted: Mon Sep 23, 2019 7:51 am
by adrelanos
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?

Re: [feature request] pref to overwrite default whitelist

Posted: Wed Sep 25, 2019 2:20 am
by barbaz
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.