Move NoScript-Settings from pref.js to own file

Bug reports and enhancement requests
Post Reply
lagu
Posts: 3
Joined: Thu Jul 24, 2014 8:23 am

Move NoScript-Settings from pref.js to own file

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post 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.
?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
lagu
Posts: 3
Joined: Thu Jul 24, 2014 8:23 am

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

Post 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
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
lagu
Posts: 3
Joined: Thu Jul 24, 2014 8:23 am

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

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Post Reply