Skip to content

Instantly share code, notes, and snippets.

@zpao
Forked from iangilman/resetpanorama.js
Created October 21, 2010 16:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zpao/638855 to your computer and use it in GitHub Desktop.
Save zpao/638855 to your computer and use it in GitHub Desktop.
/* Run this from your error console. WARNING: removes tabs from their existing groups! */
var Cc = Components.classes;
var Ci = Components.interfaces;
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var winEnum = wm.getEnumerator("navigator:browser");
while (winEnum.hasMoreElements()) {
var win = winEnum.getNext();
win.TabView._initFrame(function() {
var contentWindow = win.TabView._window;
contentWindow.UI.reset();
});
Array.forEach(win.gBrowser.tabs, function(tab) win.gBrowser.showTab(tab));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment