如何在JavaScript代码中获取“书签"工具栏信息? [英] How to get Bookmarks toolbar information in JavaScript code?

查看:70
本文介绍了如何在JavaScript代码中获取“书签"工具栏信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何选项可用于从javascript代码获取书签" toolabr信息,即 我们可以获取书签"工具栏中添加了书签的信息吗?[URL,文本等]?

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.]?

推荐答案

这取决于您正在谈论的工具栏(浏览器书签栏?哪种浏览器?)以及JavaScript的执行环境.

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.

这篇关于如何在JavaScript代码中获取“书签"工具栏信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆