Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7797275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:38:06+00:00 2026-06-01T23:38:06+00:00

I am writing a Chrome Extension which opens all the user’s bookmarks in tabs.

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:38:09+00:00Added an answer on June 1, 2026 at 11:38 pm

    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

    function process_bookmark(bookmarks) {
    
        for (var i =0; i < bookmarks.length; i++) {
            var bookmark = bookmarks[i];
            if (bookmark.url) {
                console.log("bookmark: "+ bookmark.title + " ~  " + bookmark.url);
            }
    
            if (bookmark.children) {
                process_bookmark(bookmark.children);
            }
        }
    }
    
    chrome.browserAction.onClicked.addListener(function(tab) {
      console.log("listing bookmarks: " );
      chrome.bookmarks.getTree( process_bookmark );
    });
    

    Google’s bookmark docs are here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Chrome extension which dynamically changes the content of the popup window
I'm writing a chrome extension which needs to interact with a subtree of bookmarks.
I'm writing a Chrome Extension to modify the user interface of Squarespace, which overlays
I am writing a Chrome extension which needs to access minus.com by OAuth 2.0.
I am writing codes for a Chrome extension that needs to access minus.com, which
I'm writing a Google Chrome extension which manipulates the current page (basically adds a
I am writing a simple chrome extension which should replace the particular content of
I am writing a chrome extension where I want to fetch all the images
I am writing a chrome extension that dynamically writes some html pages and their
I'm writing a Chrome extension and I'm specifically concerned about the HTML layout in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.