Reset settings

Ask for help about NoScript, no registration needed to post
David44

Reset settings

Post by David44 »

Hi,
I'm installing NoScript for unexperienced users for a long time and am testing NS10 now. I miss a feature. Until now I put some lines into user.js to reset some settings at every start up to FF52 ESR:

user_pref("noscript.contentBlocker", true);
user_pref("noscript.global", false);
user_pref("capability.policy.maonoscript.sites", "...");
user_pref("noscript.untrusted", "...");

How can this be done with NS10+?
Thank you.
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

Re: Reset settings

Post by skriptimaahinen »

Unfortunately webextensions, which NS10 is, cannot read or write preferences, so modifying those settings would not affect NS10 in any way. The noscript prefs you see in about:config are residue from NS5 and no longer in use. Currently, afaik, the only way to alter webextensions settings are through the extension itself (e.g. settings page).
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
musonius
Master Bug Buster
Posts: 203
Joined: Sun Jul 08, 2018 5:38 pm

Re: settings??

Post by musonius »

Extension settings are no longer available in about:config or user.js.

What you can do is customize NoScript, export the settings (this is available on the NoScript settings page), and import the file wherever you want. However, one cannot automatically reset anything at every start of Firefox this way.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Post Reply