deploy individual settings (FF 91 ESR)

Ask for help about NoScript, no registration needed to post
Asphyx
Posts: 6
Joined: Mon Oct 04, 2021 8:40 am

deploy individual settings (FF 91 ESR)

Post by Asphyx » Mon Oct 04, 2021 6:23 pm

tldr; How can individual NoScript-settings be deployed in a new (or existing) Firefox profile (without manually clicking GUI/Settings/Import)?

<rant>I'm helping some others keeping Firefox safe with Noscript for years and often create new Firefox-profiles with individual default settings. Over the years, this has become more and more difficult. In former times it was simple to set adjustments with user.js. Then it became a bit more annoying to manage a storage-sync.sqlite and browser-extension-data\{73a6fe31-595d-460b-a920-fcc0f8843232}\storage.js. Now it seems, the settings have moved to storage\default\moz-extension+++12345678-1234-1234-1234-12345678901^userContextId=4294967295\idb\3647222921wleabcEoxlt-eengsairo.sqlite. Additionally this "beautyful and short" path varies in each profile. What's coming next...? It's really confusing and steals time. But this seems to be a Mozilla-issue, not NoScript. I wonder, what they are smoking...</rant>

The question: Is there a way to deploy the settings simply with a text file like user.js in former times and import it automatically? Perhaps something like noscript_data.txt. If not, I use UserScriptJS, is it possible to import Noscript-settings with a userscript (how)?
Last edited by Asphyx on Fri Oct 15, 2021 11:41 am, edited 4 times in total.
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

User avatar
therube
Ambassador
Posts: 7719
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: deploy individual settings

Post by therube » Mon Oct 04, 2021 7:26 pm

Now it seems, the settings have moved to storage\default\moz-extension+++12345678-1234-1234-1234-12345678901^userContextId=4294967295 ...
Not sure that is correct?
Thinking it is not.

Thinking settings are stored in, storage-sync-v2.sqlite - but only until "written out (which, if I'm understanding, means that they could exist in storage-sync-v2.sqlite-wal for potentially some prolonged period of time.)

Worst part is, (I suppose) any extension could store its' data in storage-sync-v2.sqlite / .sqlite-wal.

If NoScript were your only extension (or only to store data in storage-sync-v2.sqlite), suppose you could copy that set of files (so also including storage-sync-v2.sqlite-shm) into any new Profile...


(There's probably a more straight forward way... I'd hope ;-).)



(In the old days, I had always known -shm & -wal to be intermediary files that were not expected to persist [once the browser was closed]. Now it seems they are expected & needed for correct operation.)



Deploying Firefox with extensions
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 SeaMonkey/2.53.10

barbaz
Master Bug Buster
Posts: 10038
Joined: Sat Aug 03, 2013 5:45 pm

Re: deploy individual settings

Post by barbaz » Mon Oct 04, 2021 9:13 pm

therube wrote:
Mon Oct 04, 2021 7:26 pm
Now it seems, the settings have moved to storage\default\moz-extension+++12345678-1234-1234-1234-12345678901^userContextId=4294967295 ...
Not sure that is correct?
Thinking it is not.

Thinking settings are stored in, storage-sync-v2.sqlite - but only until "written out (which, if I'm understanding, means that they could exist in storage-sync-v2.sqlite-wal for potentially some prolonged period of time.)
It's actually some in each.
Asphyx wrote:
Mon Oct 04, 2021 6:23 pm
Is there a way to deploy the settings simply with a text file like user.js in former times and import it automatically?
Not that I know of. But for "deploying" isn't there a chrome.storage.managed that could in theory be used for this? Does NoScript use that at all?
Asphyx wrote:
Mon Oct 04, 2021 6:23 pm
I use UserScriptJS, is it possible to import Noscript-settings with a userscript (how)?
What is "UserScriptJS"?
Temporarily off forum staff at my own request
*Always* check the changelogs BEFORE updating that important software!
-

Asphyx
Posts: 6
Joined: Mon Oct 04, 2021 8:40 am

Re: deploy individual settings

Post by Asphyx » Tue Oct 05, 2021 12:27 pm

therube wrote:
Mon Oct 04, 2021 7:26 pm
Thinking settings are stored in, storage-sync-v2.sqlite - but only until "written out (which, if I'm understanding, means that they could exist in storage-sync-v2.sqlite-wal for potentially some prolonged period of time.)
There is no storage-sync-v2.sqlite here. I'm testing with FF91 ESR. (all-day-browser until now is FF78 ESR) When I change NoScript-settings, the mentioned file in my 1st post is touched. It seems to be packed.
(BTW *.*wal and other I only get when FF is stopped not in the normal way.)
barbaz wrote:
Mon Oct 04, 2021 9:13 pm
Not that I know of.
Sad, but thanks
What is "UserScriptJS"?
A few script files and ini-modification that extend Firefox to run own scripts, very useful:
https://github.com/ardiman/userChrome.js German: https://github.com/Endor8/userChrome.js
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

Asphyx
Posts: 6
Joined: Mon Oct 04, 2021 8:40 am

Re: deploy individual settings

Post by Asphyx » Fri Oct 15, 2021 11:31 am

Is there a chance to solve the problem?
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

Post Reply