alexpdraper / reading-list

A Chrome/Firefox extension for saving pages to read later.
https://chrome.google.com/webstore/detail/lloccabjgblebdmncjndmiibianflabo
107 stars 18 forks source link

Where are the saved items stored? #135

Open ifnullzero opened 3 years ago

ifnullzero commented 3 years ago

I was using this add on but after the last FF update it seems to have stopped working - I can still see the icon in the URL bar but clicking it does nothing. It seems "dead". I'm just wondering where this add on stores items that I have previously saved.

I saved about a dozen links and now I cannot access them. Is there any way to access them now? In some local storage somewhere? If so how would I find them? Thanks.

alexpdraper commented 3 years ago

Hey there, the reading list items are stored in your local storage unless you are logged in, and then they’ll be synced with your account. They’re accessible through the browser extension storage API. You can see the raw storage output by navigating directly to the popup page for the reading list in a Firefox window. I believe the URL is moz-extension://860f3270-6124-5644-9657-d5387eea5eae/popup.html. Then you can open your developer tools by going to Tools > Browser Tools > Web Developer Tools.

Screenshot of the menu to open the “Web Developer Tools” in Firefox

In the developer tools panel, select Console. Add this code and hit enter to see all the items that are stored for your Reading List.

browser.storage.sync.get(null, (items) => {
  console.log(items);
});

Hope this helps!

alexpdraper commented 3 years ago

You can also download all the items stored in your Reading List by going to the Reading List settings and clicking Export.

Screenshot of the Reading List settings page
ifnullzero commented 3 years ago

Thank you for responding, I was able to get them via the Export button method.

About the other method (moz-extension URL). I'm interested to see how that works. I tried the URL you mentioned (moz-extension://860f3270-6124-5644-9657-d5387eea5eae/popup.html) but it did not do anything -- when I try it the page just remains where it currently is. Is the URL correct? How would I find out what the correct URL is? Thx.

alexpdraper commented 3 years ago

The ID for the reading list might be different for you. I opened the reading list popup, right-clicked inside of it, and selected View Page Source. Then I removed the view-source: from the beginning of the URL that gets opened. Hopefully that works 🤞.

formlessdao commented 2 years ago

Can the addon import large amounts of links? I have a 50000 links list I exported from Onetab but I can't seem to import it in Reading List.

alexpdraper commented 2 years ago

Can the addon import large amounts of links? I have a 50000 links list I exported from Onetab but I can't seem to import it in Reading List.

It cannot. There are limits imposed by the browser on how much storage space the extension can use. You’ll probably get capped at 400–500 items.

formlessdao commented 2 years ago

So reading list can not contain more than max 500 items even if i add them one by one using Reading List itself?

alexpdraper commented 2 years ago

Yes. It’s not a limit of the import/export functionality, it’s a restriction on storage limits set by the browser. Not much we can do about it. The max items will probably be less than 500. It depends on the length of the URLs/titles in the individual reading list items added.

istvandbsd commented 2 years ago

Hi, for me it capped at 250 items. Unfortunately it shows as if it could save more, but then they aren't getting into the list. (Seemed like a bug, now it seems more like a UX issue, but I was too lazy to open an issue 😅 )