The root id is always 0, and when I mean 0, it corresponds to "Bookmarks bar" and "Other bookmarks". You would have to iterate through all the bookmarks and find which node has those root folders and save its bookmark id. But how to access the members of that object?Ĭhanging tree to tree.id or any other of what look to be parameters displays undefined.Ĭurrently, there is no good way to find folders such as "Other Bookmarks" or "Bookmarks Bar" in the bookmarks API. That displays, that suggests (at least to me with a limited JavaScript experience) that an object exists. any help will be greatly appreciated, even if it's just pointing me to some good examples.ĭocument.getElementById("Output").innerHTML = tree ![]() When the user marks the item as read, it will be removed from that folder. In that folder I'll create the unread bookmarks. So I plan to create either one or two bookmark folders in the root folder/other bookmarks - at minimum an "unread pages" folder. ![]() My ultimate goal is to make an extension that allows me to save pages to come and read later without having to go sign up for an account on some service somewhere. Typing/typing and pressing return failed to do anything) and can't find anything useful. I've looked at the example source (when I d/led and installed it on my computer it didn't do anything except provide a search box. The problem is that there are no simple examples (that I can find) about how to actually use the bookmarks API. I'm trying to write a better bookmark manager in Chrome extensions.
0 Comments
Leave a Reply. |