Javascript and bookmarks

大兔子大兔子 提交于 2019-12-12 01:35:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!