Google Chrome“Back”和“前进”历史 [英] Google Chrome "Back" and "Forward" History

查看:118
本文介绍了Google Chrome“Back”和“前进”历史的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个名为 Tab Bundler 的小扩展程序,这简短地节省将窗口中的所有打开的标签粘贴到可以通过单击按钮打开的包中。然而,当打开一个包时,没有关于用户如何获得该URL的历史记录,即。用户不能点击返回以查看他们如何访问该网址。这是我想要实现的功能。我搜索了一会儿,使用google搜索扩展文档彻底查看: http:// code.google.com/chrome/extensions/history.html 。但我无法弄清楚如何在没有自己跟踪的情况下获取这些信息。这是我唯一的选择吗?任何想法都会非常感激。

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. When a bundle is opened however, no history of how the user got to that url is saved, ie. 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. 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.

谢谢!

推荐答案

在这个追求中你并不孤单!
目前Google Code中的答案是:任何人在开发History API时都会问这个问题。然后没有优雅的方式来访问标签的历史。
当然,您可以将 chrome.tabs.onUpdated 挂接到记录每一页,并制作您自己的标签的历史......

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

这篇关于Google Chrome“Back”和“前进”历史的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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