Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ventolinmx opened this issue Jun 6, 2023 · 4 comments
Open

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

ventolinmx opened this issue Jun 6, 2023 · 4 comments

Comments

@ventolinmx
Copy link

ventolinmx commented Jun 6, 2023

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
Copy link
Owner

ufb commented Jun 6, 2023

@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
Copy link
Author

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

@ufb
Copy link
Owner

ufb commented Jun 6, 2023

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
Copy link
Author

Thank you. Will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants