Page 1 of 2
deploy individual settings (FF 91 ESR)
Posted: Mon Oct 04, 2021 6:23 pm
by Asphyx
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)?
Re: deploy individual settings
Posted: Mon Oct 04, 2021 7:26 pm
by therube
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
Re: deploy individual settings
Posted: Mon Oct 04, 2021 9:13 pm
by barbaz
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"?
Re: deploy individual settings
Posted: Tue Oct 05, 2021 12:27 pm
by Asphyx
therube wrote: ↑Mon Oct 04, 2021 7:26 pmThinking 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
Re: deploy individual settings
Posted: Fri Oct 15, 2021 11:31 am
by Asphyx
Is there a chance to solve the problem?
Re: deploy individual settings (FF 91 ESR)
Posted: Fri Oct 29, 2021 8:39 am
by Becky:)
I'm using Firefox 78 ESR, too and copy storage-sync.sqlite and storage.js in browser-extension-data in new profiles. It would be nice to have a comparable (or more easy?) way also for the next ESR-version. Are you planning to make this possible, Giorgio? This would be really nice. There is not much time left until 78 is "end of life".
Re: deploy individual settings (FF 91 ESR)
Posted: Fri Oct 29, 2021 7:06 pm
by barbaz
@Becky:) storage.js is already obsolete, so whatever copying that does in 78ESR is what it will do in current ESR. As for storage-sync.sqlite, just replace it with copying the following 3 files (all are needed if they exist):
- storage-sync-v2.sqlite
- storage-sync-v2.sqlite-shm
- storage-sync-v2.sqlite-wal
Re: deploy individual settings (FF 91 ESR)
Posted: Wed Nov 03, 2021 9:30 am
by Becky:)
This is strange. I don't have a storage-sync-v2.sqlite in my profile, nor in a new profile. When NoScript settings are changed, only in the folder „storage“ files are changed. I see no way to just copy a file to transfer the settings.
@Admin: dont't you think, one captcha is enough? Or still better, a captcha without Google? (solved more than 10 captchas...)
Re: deploy individual settings (FF 91 ESR)
Posted: Wed Nov 03, 2021 2:54 pm
by therube
FF 78 still used storage-sync.sqlite.
(78 hadn't transitioned to storage-sync-v2.sqlite.)
Re: deploy individual settings (FF 91 ESR)
Posted: Wed Nov 03, 2021 8:40 pm
by Becky:)
There's no doubt about FF 78, but I thought, the topic is Firefox 91 ESR. I installed it for testing purposes, that's what I write about. No storage-sync*.sqlite there...
Maybe my last post - had to solve ~50 captchas

Re: deploy individual settings (FF 91 ESR)
Posted: Wed Nov 10, 2021 8:17 am
by Asphyx
Becky:) wrote: ↑Wed Nov 03, 2021 8:40 pmMaybe my last post - had to solve ~50 captchas
These captchas really are a pain. Steal time and support Google. You can decide to register, then there are no captchas. This was the reason for me...
Back to the original question, does anybody have an idea, why in some installations of Firefox 91 there is a storage-sync-v2.sqlite and elsewhere not?
Re: deploy individual settings (FF 91 ESR)
Posted: Fri Jan 06, 2023 11:08 am
by Asphyx
Long time ago since I asked this... It's curious, now I use FF 102 ESR and still there's no storage-sync-v2.sqlite on my computer (am I the only one??) and I'm still looking for a possibility to deploy individual NS-settings (without "Cloud").
Re: deploy individual settings (FF 91 ESR)
Posted: Fri Jun 23, 2023 2:33 pm
by a-l-e-c
OP: This is the feature you also seem to require;
https://github.com/hackademix/noscript/issues/303
Re: deploy individual settings (FF 91 ESR)
Posted: Fri Jun 23, 2023 9:38 pm
by barbaz
Asphyx wrote: ↑Wed Nov 10, 2021 8:17 am
does anybody have an idea, why in some installations of Firefox 91 there is a storage-sync-v2.sqlite and elsewhere not?
Latest post reminded me I had since seen this myself when playing with Mullvad Browser (102esr-based).
Do you have about:config > webextensions.storage.sync.enabled set to false? If so, NoScript will store
everything in storage.local, i.e. all of your NoScript settings are in the relevant
Asphyx wrote: ↑Mon Oct 04, 2021 6:23 pm
storage\default\moz-extension+++12345678-1234-1234-1234-12345678901^userContextId=4294967295\idb\3647222921wleabcEoxlt-eengsairo.sqlite.
Re: deploy individual settings (FF 91 ESR)
Posted: Thu Nov 02, 2023 9:19 am
by Asphyx
barbaz wrote: ↑Fri Jun 23, 2023 9:38 pmDo you have about:config > webextensions.storage.sync.enabled set to false?
Thank you I didn't look for an answer a few months, but the problem still exists. Yes, webextensions.storage.sync.enabled was set to false, just because I don't want to use Firefox Sync and thought, the setting could establish unwanted connections. So I can set it to true without doubts?
I set it and tried the following:
- closed Firefox, saved the storage-sync-v2.* files ("state A")
- closed Firefox, changed allowed sites ("state B"), closed Firefox
- restored the storage-files ("state A")
- started Firefox -> nothing has changed (still "state B")
another try:
- delete storage\*.*
-> all settings are away
Should it be possible to transfer NS-Settings with copying the storage-sync-v2.* files? NoScript is the only extension.