简体   繁体   English

谷歌浏览器“后退”和“前进”历史

[英]Google Chrome "Back" and "Forward" History

I am developing a little extensions called " Tab Bundler ", which in short saves all the open tabs in a window into a bundle that can be opened with the click of a button.我正在开发一个名为“ Tab Bundler ”的小扩展,简而言之,它将窗口中所有打开的选项卡保存到一个包中,单击按钮即可打开。 When a bundle is opened however, no history of how the user got to that url is saved, ie.但是,当打开包时,不会保存用户如何访问该 url 的历史记录,即。 the user can't click back to see how they got to that url.用户无法返回查看他们如何到达该网址。 This is functionality I want to implement.这是我想要实现的功能。 I looked for a while, googling, looking thoroughly through the google chrome extension documentation: http://code.google.com/chrome/extensions/history.html .我找了一会儿,谷歌搜索,彻底浏览谷歌浏览器扩展文档: http : //code.google.com/chrome/extensions/history.html But I couldn't figure out how to get this information without tracking it myself.但是我无法弄清楚如何在不自己跟踪的情况下获取这些信息。 Is that the only option I have?这是我唯一的选择吗? Any thoughts would be really appreciated.任何想法将不胜感激。

Thanks!谢谢!

Look, many people tried this before.看,很多人以前都试过这个。 You are not alone in this quest!在这个任务中你并不孤单! At the moment the answer in Google Code was: anybody asked for it when they where developing the History API.目前 Google Code 中的答案是:任何人在开发 History API 时都会要求它。 Then there's no elegant way to access tabs' history.然后没有优雅的方式来访问标签的历史记录。 Of course, you can hook chrome.tabs.onUpdated to record every page and make your own tab's history...当然,你可以钩住chrome.tabs.onUpdated来记录每一页并制作你自己的标签历史记录......

You could probably hook chrome.tab.onUpdate as well as some state or focus change hook to correlate.您可能会挂钩 chrome.tab.onUpdate 以及某些状态或焦点更改挂钩以进行关联。

I really want this, please make it!我真的很想要这个,求求你了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM