Controlling whitelist via user.js in 10.x

Ask for help about NoScript, no registration needed to post
zlatinb
Posts: 1
Joined: Fri Feb 08, 2019 9:04 pm

Controlling whitelist via user.js in 10.x

Post by zlatinb » Fri Feb 08, 2019 9:09 pm

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
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:64.0) Gecko/20100101 Firefox/64.0

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

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

Post by barbaz » Fri Feb 08, 2019 10:34 pm

Can't be done through user.js. WebExtensions have no way to access the prefs services.

related: viewtopic.php?f=10&t=24590
*Always* check the changelogs BEFORE updating that important software!
-

Post Reply