Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm fiddling around trying to make a very basic, simple extension for Chrome. The idea is to via a browser action call run all bookmarks listed in the bookmark bar.

As of now, the idea has resulted in this block of code:

HTML
<script>

var marks = [];
chrome.bookmarks.getTree(function(marks){
    chrome.browserAction.onClicked.addListener(function(tab){
    for(var i = 0; i < marks.length; i++)
    {
        chrome.tabs.create(tab((marks[i]));
    }
    }
</script>


Not quite sure exactly where I'm going wrong, but I have a hunch that I don't properly can round up the bookmarks this way. Could some kind soul point me in a more proper direction.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900