Amitku
Amitku

Reputation: 4704

How to get Bookmarks toolbar information in JavaScript code?

Is there any option for getting Bookmarks toolabr information from javascript code, i.e. Can we get information what are bookmarkleted in the Bookmarks toolbar [url, text etc.]?

Upvotes: 0

Views: 719

Answers (2)

Topera
Topera

Reputation: 12389

I think you can't. This would be privacy violation. Ex: your js read bookmarks information and send by ajax to your server.

Upvotes: 0

Quentin
Quentin

Reputation: 943556

It depends on the toolbar you are talking about (a browser bookmarks bar? which browser?) and the environment the JavaScript executes in.

Assuming the latter is "a webpage loaded in a browser", then the answer is 'no, that would be a horrific invasion of privacy and security risk'.

Other environments (e.g. a browser plugin) have different restrictions and may allow access.

Upvotes: 1

Related Questions