问题
Lets say that I am on a page that has a significantly long list of URLs and I want to make sure that I have all of them bookmarked. I know that I already have many of them in my bookmarks list and would like to avoid duplications as much as possible.
With that in mind, I would like to be able to grab all of the links and then open into new tabs those that are not currently contained in my bookmarks list. I can do all of the getting the links, and comparing the links, I just don't know how to access the bookmarks via javascript.
I can do this in whatever PC/mac browser that has a workable solution. Does anyone have any ideas?
回答1:
You will never be able to access the user's bookmarks via JavaScript. In fact, that would be a severe security hole.
JavaScript gets executed in a socalled sandbox. That means that, at least in theorey, a JavaScript never will have access to the resources of the client machine (in practice, the sandboxes have bugs that allow nasty things, but that is a different story).
回答2:
You can also Check out Opera Link ;)
http://www.opera.com/link/
Filtering duplicates can be done on-line in your accout.
来源:https://stackoverflow.com/questions/2080943/javascript-and-bookmarks