I am writing a Chrome Extension which opens all the user’s bookmarks in tabs.
So far i’ve made the popup.html which opens in tabs the selected folder from the Bookmarks bar.
I’m making a settings page and i would like to know how can i access and display every single item of the user’s Bookmarks in order to select a bookmark to exclude from opening with a checkbox.
In less words, i would like to:
Bookmarks bar
---> Bookmark1
---> Bookmark2 //display those bookmarks with a checkbox
---> Bookmark1
In order to have
Excluded bookmarks:
[x]Bookmark 1
[ ]Bookmark 2
[x]Bookmark 3
Thanks in advance
I wrote code to list the contents of a chrome user’s bookmarks to the console.log:
The process_bookmark function prints the bookmarks
The chrome.browserAction.onClicked is called when the user clicks the extension button
Google’s bookmark docs are here