Chrome 扩展历史 API [英] Chrome extension History API
问题描述
我正在编写一个 chrome 扩展程序,它需要分析特定标签的最近浏览历史. chrome.history API 允许我在全局历史记录中搜索项目,但似乎无法将结果本地化到特定选项卡.是我遗漏了什么,还是无法获得?
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?
推荐答案
我认为你正在寻找的是 导航 API.Chrome 历史记录与特定标签无关.如果您想使用或从历史中删除选项卡导航的元素,您可以使用带有导航信息的历史搜索功能.
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 扩展历史 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!