deploy individual settings (FF 91 ESR)

Ask for help about NoScript, no registration needed to post
Asphyx
Posts: 14
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: 7724
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
Senior Member
Posts: 10060
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"?
*Always* check the changelogs BEFORE updating that important software!
-

Asphyx
Posts: 14
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: 14
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

Becky:)

Re: deploy individual settings (FF 91 ESR)

Post by Becky:) » Fri Oct 29, 2021 8:39 am

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

barbaz
Senior Member
Posts: 10060
Joined: Sat Aug 03, 2013 5:45 pm

Re: deploy individual settings (FF 91 ESR)

Post by barbaz » Fri Oct 29, 2021 7:06 pm

@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
*Always* check the changelogs BEFORE updating that important software!
-

Becky:)

Re: deploy individual settings (FF 91 ESR)

Post by Becky:) » Wed Nov 03, 2021 9:30 am

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...)
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

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

Re: deploy individual settings (FF 91 ESR)

Post by therube » Wed Nov 03, 2021 2:54 pm

FF 78 still used storage-sync.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

Becky:)

Re: deploy individual settings (FF 91 ESR)

Post by Becky:) » Wed Nov 03, 2021 8:40 pm

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 :-(
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

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

Re: deploy individual settings (FF 91 ESR)

Post by Asphyx » Wed Nov 10, 2021 8:17 am

Becky:) wrote:
Wed Nov 03, 2021 8:40 pm
Maybe 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?
--
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

Post Reply