Page 1 of 1

Controlling whitelist via user.js in 10.x

Posted: Fri Feb 08, 2019 9:09 pm
by zlatinb
Hi,

I am developing a Firefox profile bundled with NoScript and I want to disable all scripts globally by default except for localhost. Is there a way to do that entirely through properties in user.js or is it necessary to bundle some kind of sqlite file?

Alternatively, can I prepare a whitelist manually, export it and then have NoScript automatically import it on startup?

Any other suggestions are welcome - my main goal is to have my users download the Firefox profile and not need to change any settings manually.

Thanks

Re: Controlling whitelist via user.js in 10.x

Posted: Fri Feb 08, 2019 10:34 pm
by barbaz
Can't be done through user.js. WebExtensions have no way to access the prefs services.

related: viewtopic.php?f=10&t=24590