deploy individual settings (FF 91 ESR)
deploy individual settings (FF 91 ESR)
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)?
<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
Re: deploy individual settings
Not sure that is correct?Now it seems, the settings have moved to storage\default\moz-extension+++12345678-1234-1234-1234-12345678901^userContextId=4294967295 ...
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
Re: deploy individual settings
It's actually some in each.therube wrote: ↑Mon Oct 04, 2021 7:26 pmNot sure that is correct?Now it seems, the settings have moved to storage\default\moz-extension+++12345678-1234-1234-1234-12345678901^userContextId=4294967295 ...
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.)
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?
What is "UserScriptJS"?
*Always* check the changelogs BEFORE updating that important software!
-
Re: deploy individual settings
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.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.)
(BTW *.*wal and other I only get when FF is stopped not in the normal way.)
Sad, but thanks
A few script files and ini-modification that extend Firefox to run own scripts, very useful:What is "UserScriptJS"?
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
Re: deploy individual settings
Is there a chance to solve the problem?
--
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Re: deploy individual settings (FF 91 ESR)
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".
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Re: deploy individual settings (FF 91 ESR)
@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
- storage-sync-v2.sqlite
- storage-sync-v2.sqlite-shm
- storage-sync-v2.sqlite-wal
*Always* check the changelogs BEFORE updating that important software!
-
Re: deploy individual settings (FF 91 ESR)
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...)
@Admin: dont't you think, one captcha is enough? Or still better, a captcha without Google? (solved more than 10 captchas...)
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Re: deploy individual settings (FF 91 ESR)
FF 78 still used storage-sync.sqlite.
(78 hadn't transitioned to storage-sync-v2.sqlite.)
(78 hadn't transitioned to storage-sync-v2.sqlite.)
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:68.0) Gecko/20100101 Firefox/68.0 SeaMonkey/2.53.11
Re: deploy individual settings (FF 91 ESR)
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
Maybe my last post - had to solve ~50 captchas

Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Re: deploy individual settings (FF 91 ESR)
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?
--
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Re: deploy individual settings (FF 91 ESR)
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").
--
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Re: deploy individual settings (FF 91 ESR)
Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15
Re: deploy individual settings (FF 91 ESR)
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
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Re: deploy individual settings (FF 91 ESR)
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.
--
Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0