NoScript and Firefox Sync

Ask for help about NoScript, no registration needed to post
barbaz
Senior Member
Posts: 10060
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript and Firefox Sync

Post by barbaz » Thu Sep 17, 2020 10:09 am

Alain T. wrote:
Thu Sep 17, 2020 8:54 am
WDC was the guilty one !

So NoScript settings are kept in the cache...
The main NoScript settings, including the site permissions, are stored in storage-sync-v2.sqlite, storage-sync-v2.sqlite-shm, and storage-sync-v2.sqlite-wal in Firefox 79+. The last two are normally temporary files which get "written out" to storage-sync-v2.sqlite on quit. But for some reason that isn't happening with the storage-sync-v2.sqlite files, and some overzealous cleaning programs don't account for that possibility.

If you want to get rid of these "temporary" files without losing any data, you could completely quit Firefox, then open the storage-sync-v2.sqlite (leaving the -shm & -wal files alongside it) in sqlitebrowser, then quit sqlitebrowser without making any changes.
*Always* check the changelogs BEFORE updating that important software!
-

q0p
Posts: 1
Joined: Thu Feb 04, 2021 4:45 pm

Sync from any browsers

Post by q0p » Thu Feb 04, 2021 4:50 pm

Can you add in NoScrypt sync function?

I am login in firefox account on different PC and I get all bookmarks, all addons (NoScrypt too).
But whitelist of sites (sites with enabled crypts) don`t sync.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

Guest

Re: NoScript and Firefox Sync

Post by Guest » Sat Feb 20, 2021 2:23 am

barbaz wrote:
Thu Sep 17, 2020 10:09 am
Alain T. wrote:
Thu Sep 17, 2020 8:54 am
WDC was the guilty one !

So NoScript settings are kept in the cache...
The main NoScript settings, including the site permissions, are stored in storage-sync-v2.sqlite, storage-sync-v2.sqlite-shm, and storage-sync-v2.sqlite-wal in Firefox 79+. The last two are normally temporary files which get "written out" to storage-sync-v2.sqlite on quit. But for some reason that isn't happening with the storage-sync-v2.sqlite files, and some overzealous cleaning programs don't account for that possibility.

If you want to get rid of these "temporary" files without losing any data, you could completely quit Firefox, then open the storage-sync-v2.sqlite (leaving the -shm & -wal files alongside it) in sqlitebrowser, then quit sqlitebrowser without making any changes.
I came here to report a "bug" then saw several posts in this thread that confirmed my findings. I recently updated my and my wife's computers to the latest Firefox version 8.5x. (I'd blocked any updating for quite some time - on purpose.) My wife discovered that any new whitelist or blacklist items added to Per-Site Permissions would NOT remain on the list permanently. A test on my computer showed the same behavior. After much troubleshooting and investigation, I was able to track the issue to CCleaner's Firefox cache cleaning. Specifically to storage-sync-v2.sqlite-shm and -wal, both of which were deleted whenever running CCleaner Portable - which we both run almost daily. All the older entries in Per-Site Permissions did NOT get deleted by CCleaner, so I assume the older entries are stored elsewhere and not in the these two files. To get around this "bug" - which may actually be a Firefox bug - I simply added these two files to CCleaner's "exceptions". Problem solved. Hopefully this might save some time for anyone running up against the same situation. :)
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: NoScript and Firefox Sync

Post by barbaz » Sat Feb 20, 2021 5:42 pm

This thread is only for Firefox Sync related NoScript issues. Please take further discussion of cleaning software problems elsewhere.
*Always* check the changelogs BEFORE updating that important software!
-

Jackalus
Posts: 4
Joined: Tue Mar 15, 2016 2:07 pm

Re: NoScript and Firefox Sync

Post by Jackalus » Sun Feb 21, 2021 2:24 pm

I am posting to get into the loop on this thread.

I recently lost all my settings from NS on Android (FF required reinstalling)
I do use Sync, and would be delighted if NS synced at least the whitelist.

Thanks
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0

anon1357
Posts: 13
Joined: Fri Mar 05, 2010 10:39 pm

Re: NoScript and Firefox Sync

Post by anon1357 » Sat Mar 06, 2021 3:55 pm

I just updated to Firefox 86 on my main Windows 10 machine, and observe that many of my NS whitelist entries have been forgotten.
I haven't done an export for a while, since NS has been operating well for years.
Are any automatic backups made?
I have also recently added a new computer to my Firefox sync. It was a clean Ubuntu install that I added to my Firefox account and enabled sync.
Hopefully the sync is not so simplistic to conclude "there is a new machine here added to sync with no NS whitelist - since it is newest, lets sync the empty whitelist to all the other computers that have long whitelists".

I'm not sure if this is a sync issue or a FIrefox update issue or both.
It might be helpful to automatically export NS settings before any update, if that is possible.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0

PSMikey
Posts: 1
Joined: Wed Mar 24, 2021 6:05 am

Re: NoScript and Firefox Sync

Post by PSMikey » Wed Mar 24, 2021 6:12 am

Last weekend, I installed FFox on my work computer and enabled sync with my home computer. Everything seemed to be ok, except that my NoScript per-site permissions didn't seem to get synched to the work computer.

Tonight, on my home computer, it seems to have "forgotten" many (not all) of the per-site permissions. It makes me think that the sync from my home computer to my work computer never worked, and then today, FFox sync deleted many per-site permissions from my home Ffox since they did not exist on my work computer.

Any idea why/how this happened?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0

JCRFC

Re: NoScript and Firefox Sync

Post by JCRFC » Thu Aug 26, 2021 8:42 am

If there is no way around the sync limit of 100kb from Firefox would it at least be possible to have a merge on import.
That way we can export and import between machines without overwriting settings?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

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

Re: NoScript and Firefox Sync

Post by therube » Thu Aug 26, 2021 3:24 pm

Aside from any sync - which I know nothing of, NoScript (Options) itself can Import | Export.

(Backup first &) see what that may or may not be able to do for you.
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:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.10

JCRFC

Re: NoScript and Firefox Sync

Post by JCRFC » Fri Aug 27, 2021 3:57 am

I know, but if you export, make some changes then import the changes are overwritten. It does not merge.

Therefore with two computers if I whitelist on Computer A Site A and whitelist on Computer B Site B there is no way to sync these two files.

If you export from A and import into B then you lose the Whitelisted Site B and vice versa. If there was an option on import to merge then I could at least manually keep them in some sort of sync. I can of course winmerge the files etc but this is very tedious.

JC.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Post Reply