Chrome扩展程序History API [英] Chrome extension History API

查看:107
本文介绍了Chrome扩展程序History API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个Chrome扩展,需要分析特定选项卡的最近浏览历史 chrome.history API 允许我搜索全局历史记录中的项目,但似乎没有提供将结果本地化到特定选项卡的方法。我错过了什么,或者这是不可能得到的吗?

http://developer.chrome.com/extensions/webNavigation.htmlrel =nofollow>导航API 。 Chrome历史记录与特定标签无关。如果您想要在历史记录中使用或删除选项卡导航的某个元素,则可以将历史搜索功能与导航信息结合使用。

I am writing a chrome extension that needs to analyze the recent browsing history for a particular tab. The chrome.history API allows me to search for items in the global history, but seemingly provides no means to localize the results to a particular tab. Am I missing something, or is this impossible to get?

解决方案

I think what you are looking is the navigation API. The Chrome history is not related to a particular tab. If you want to use or delete from the history a element of the tab navigation you can use the history search function with the navigation information.

这篇关于Chrome扩展程序History API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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