Can you access a client's bookmarks using javascript with their permission?

后端 未结 5 826
我在风中等你
我在风中等你 2021-01-16 22:36

I want to make it easier for a user to import bookmarks to my server. Is there anyway to automate this process using javascript to obtain the user\'s bookmarks? I\'m assumin

5条回答
  •  别那么骄傲
    2021-01-16 22:50

    The browser is obviously aware of their bookmarks, but no, JS cannot access this information - it would be leaking private data as you yourself have noted.

    Anything you can do in JS with the user's permission can be done without their permission. The only manual control they have is "Run scripts" or "Don't".

提交回复
热议问题