ufb / Textmarker

Firefox extension
Mozilla Public License 2.0
214 stars 29 forks source link

Can't find the folder or file where my highlights are stored. #196

Open ventolinmx opened 1 year ago

ventolinmx commented 1 year ago

Describe the bug Can't find the folder or file where my highlights are stored.

Expected behavior I wish to restore my highlights from a manual backup made from my .mozilla folder.

Which OS, Firefox edition, Textmarker version OS: Ubuntu 22.04.2 FF edition: 113.0.2 Textmarker version: 5.3.3

ufb commented 1 year ago

@ventolinmx the .mozilla folder should contain a "firefox" folder. In that folder you find all the firefox profile folders you had. Open the one you wish to restore your highlights from - in there you have 2 files that contain the sync and the local storage for that profile:

storage-sync-v2.sqlite ~storage.sqlite~

So, the path should be: .mozilla/firefox/<name-of-profile>/storage-sync-v2.sqlite ~(/storage.sqlite)~

Please note that these storage folders serve as database for all extensions - not only Textmarker.

Update Just checked - I think the location for the synced storage is correct (file shared among all extensions). But it seems like the local storage is in an extension specific folder:

.mozilla/firefox/<profile-name>/storage/default/moz-extension+++<extension-id>^userContextId=<user-id>/idb/<prefix>-eengsairo.sqlite

ventolinmx commented 1 year ago

Thanks. Is there a way to know what Textmarker's extension-id is?

ufb commented 1 year ago

Not to my knowledge. If you have many folders in .../storage/default/ then you could try a full text search inside that folder - search for a term that you should expect in the Textmarker storage - but note that some words will be encoded. Try ignoreHash or pagenote, that worked for me

ventolinmx commented 1 year ago

Thank you. Will look into it.