Page 1 of 1

Move NoScript-Settings from pref.js to own file

Posted: Thu Jul 24, 2014 8:30 am
by lagu
I am using NoScript and it is a very usefull addon.
As i use serveral clients and profiles i update all profiles due a batch-File. (it is a portable Firefox - therefore it works without any problems)

Sometimes i need to change something in the pref.js so i need to include this file.
The problem is, that this would cause a loss of all NoScript settings saved in the pref.js.

It would be nice and very usefull if NoScript saves his settings in an own file located in the profil. For example create an folder with an json in it, or use an sqlite-Database, or an xml or something else.

Re: Move NoScript-Settings from pref.js to own file

Posted: Thu Jul 24, 2014 9:40 am
by Giorgio Maone
Couldn't your batch isolate them using grep/awk/perl or whatever Windows equivalent exists (if you use batches, I strongly recommend either switching to a *X system or trying CygWin ;) ) to isolate the NoScript bits, which all start with

Code: Select all

user_pref("noscript.
or

Code: Select all

user_pref("capability.policy.
?

Re: Move NoScript-Settings from pref.js to own file

Posted: Thu Jul 24, 2014 10:21 am
by lagu

Code: Select all

user_pref("noscript.ABE.migration", 1);
user_pref("noscript.gtemp", "");
user_pref("noscript.subscription.lastCheck", 1735493411);
user_pref("noscript.temp", "");
user_pref("noscript.version", "2.6.8.33");
user_pref("noscript.visibleUIChecked", true);
What are this lines doing?

As far as i see online the main

Code: Select all

user_pref("capability.policy.maonoscript.
needs to be restored.
As workaround i am using code due the batch, but it would be easier if the settings are saved in own files.

code for the moment is

Code: Select all

find "capability.policy.maonoscript.sites" ....\%alteVersion%\Data\profile\prefs.js >> ....\Data\profile\prefs.js

Re: Move NoScript-Settings from pref.js to own file

Posted: Fri Aug 01, 2014 10:59 am
by lagu
ok i have found serveral settings and blocked them via cck2.
An own file would be nice, as the pref of firefox isn't intendend to save there such things.