阅读扩展程序中的Chrome浏览历史 [英] Read Chrome browsing history within extension
问题描述
如何使用JavaScript或jQuery检查Chrome的浏览记录(在访问链接的计算机上)是否找到了某个链接?我对我必须使用的功能感兴趣(如果有的话)。我怎样才能得到访问链接的日期和时间?
解决方案由于显而易见的安全问题,网页是不可能的。
从JavaScript中运行在扩展程序中检索用户历史记录 ,但这样做需要提升权限,用户在被警告后必须授予权限。总之,您可能正在寻找 chrome.history.getVisits()
函数。您可以使用 chrome.history $ c $查找有关如何访问历史记录的更多信息c>此处以及由此产生的安全向用户发送的警告。
How can I check if a certain link is found in Chrome's browsing history(on the computer that accesses the link) using JavaScript or jQuery? I am interested (if any) in the functions that I have to use. Also how can I get the date and time of the accessed link?
Retrieving the users history from javascript launched from a web page is impossible due to obvious blatant security issues.
Retrieving the users history from javascript running in an extension is possible, but doing so requires elevated permissions that the user has to grant after being warned. In summary you are probably looking for the chrome.history.getVisits()
function. You can find more information on how to access the history using chrome.history
here and the resulting security warnings given to the user here.
这篇关于阅读扩展程序中的Chrome浏览历史的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!