搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Is it possible to clear the "back/forward" history of a tab?

  • 4 个回答
  • 14 人有此问题
  • 5 次查看
  • 最后回复者为 cor-el

more options

Is it possible to clear the back/forward history of a specific tab?

Especially the tabs that you pin as "App Tab" will get cluttered. Web sites like gmail, google reader create a new history entry almost every time and I am pretty sure this has some performance ramifications.

Is it possible to clear the back/forward history of a specific tab? Especially the tabs that you pin as "App Tab" will get cluttered. Web sites like gmail, google reader create a new history entry almost every time and I am pretty sure this has some performance ramifications.

所有回复 (4)

more options

Is it possible to clear the "back/forward" history of a specific tab? :

You can go back to the earliest entry in the tab and open a new page so that you remove all of the forward history, but you can't remove the original or reduce it to just the original entry in the tab.

App-tabs are pretty much like regular tabs except that the tab is protected from opening a direct link or bookmark to another site within the app-tab -- that does not apply to bookmarks with substitution or javascript as they will open in the same app-tab.

App-tabs provide no more protection than normal tabs against web pages like this one while composing a reply where the typed text is frequently lost during composing and have to start over.

more options

Copy and paste this code in the Code field in the Tools > Error Console and click the Evaluate button to clear the tab session history. This code also works for extensions that allow to run code with chrome privileges (Keyconfig, mouse gestures, custom button, PrefBar).


var Cc=Components.classes, Ci=Components.interfaces;
var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);
os.notifyObservers(null, "browser:purge-session-history", "");

由cor-el于修改

more options

That last one worked like a charm. Is there any side effects to this? Other than losing all your session history - rather than a single tab?

Now how to make it into a button would be another question...

more options

PrefBar uses this code in the "clear all history" button to remove the session history.
I do not want to delete all the history, so I've created a button with just this code and never had any problems with it.
I use it to keep tabs and sessionstore.js clean with tabs that I reopen in every session.