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

Sync Thumbnail URL with Firefox Sync #144

Open
Meberem opened this issue Feb 17, 2022 · 1 comment
Open

Sync Thumbnail URL with Firefox Sync #144

Meberem opened this issue Feb 17, 2022 · 1 comment

Comments

@Meberem
Copy link

Meberem commented Feb 17, 2022

First of all, thank you for this, it's my new favourite extension!

I appologies if I have missed something that already does this but, I would love it even more if my custom favicons/css (I guess all setttings) could be synced using the Firefox Sync service. I am unfamiliar with syncing extension data but this link indicates that it as very least possible for firefox.

Thanks again!

@tborychowski
Copy link
Member

Hi. Yes, I know that this is possible. It is, however, tricky (to say the least) in this case:

For speed, performance & usability I store the thumbnails images as dataURI in browser storage (to which every extension has a sandboxed access). The more thumbs you have, the bigger the storage becomes.
Firefox has limits to what an extension can sync and it's ~100KB per extension. It's more than enough for simple settings, but nowhere near enough for syncing images.
You can see how much would you need if you export your settings from the PerfectHome>Settings>Import/Export.
I have relatively few bookmarks with thumbs and mine was 1.2MB.

Another issue is that currently the extension associates bookmark thumbnails with bookmark IDs.
This allows you to update URL of a bookmark and still see the thumbnail.
Or have different images for different urls (e.g. mail.google.com can have a different icon than calendar.google.com)
But the downside is that if you'd export your bookmarks (e.g. to a html file) and re-import them - firefox would regenerate all of the bookmarks' IDs and you'll loose all your thumbnails.
I experimented with how the IDs of bookmarks behave when they are synced acroll 2 computers and it seems that not always they are the same. So even if thumbs were synced - they would not match the IDs of bookmarks...

So - to sum up - with the current extension APIs - it doesn't seem to be possible.
Unless without creating an online sync service and making that available to all users (for free 😉)...

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