Page 1 of 1

How to retrieve permissions if add-on re-installed?

Posted: Thu Jul 06, 2023 5:53 am
by Laurens
Accidentally removed and re-installed NoScript without doing an Export of my per site permissions.
Any way I can retrieve those from my profile?

I had a quick look but was unable to find anything relevant.

(FF 115, macOS)

Re: How to retrieve permissions if add-on re-installed?

Posted: Thu Jul 06, 2023 6:40 am
by Giorgio Maone
I suppose you can use Time Machine to restore the previous state of your profile, [Export] the NoScript settings and then go back to current and [Import]?

Re: How to retrieve permissions if add-on re-installed?

Posted: Thu Jul 06, 2023 9:57 am
by Laurens
I don't use Time Machine, just ordinary file backup.
Is there a file to restore?

Re: How to retrieve permissions if add-on re-installed?

Posted: Thu Jul 06, 2023 1:20 pm
by barbaz
If viewtopic.php?p=103393#p103393 is still current in 115, try:

1) create a new, clean profile

2) install same NoScript version as is in your main profile

3) completely quit FF, copy the 3 mentioned storage-sync-* files from your backup to the new profile, deleting/overwriting the existing ones

4) restart FF, still in the new profile

5) NoScript Options > Per-site Permissions, check that your permissions are indeed there - if so use Export, then switch back to your main profile and delete the temporary profile.

This will not restore everything, but it should get enough that you can rebuild without much effort - notably, this NoScript export should contain all your permissions and per-site XSS choices.

Re: How to retrieve permissions if add-on re-installed?

Posted: Fri Jul 07, 2023 11:41 am
by Laurens
Thanks - I ended up going to a Carbon Copy Cloner backup and copying the profile to

/Users/[me]/Library/Application Support/Firefox/Profiles
In FF About:profiles
Create new

unzipped the older files into new.profile
made this "new profile" default, restarted FF, NoScript -> Export

FF
About:profiles
Went back to the current profile
Deleted
/Users/[me]/Library/Application Support/Firefox/Profiles/new.profile
Restarted FF

NoScript -> Import