Interact with chrome bookmarks outside of extensions

How would I interact with the Chrome Bookmarks API outside of an extension? I have tried to get this to work and can’t get the call to work outside of an extension. Is there a library that can help with this? Or something that I need to link in instead?

I’ve been using the below code to do a call and can’t get anything from it unless I’m using it in a bookmark.

chrome.bookmarks.getTree(function(bookmarkTree){
            console.log(bookmarkTree); 
        })

I can’t get it to interact at all.

For reference, I’m using Angular and Node.


Source: bookmarks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.