Skip to content

Instantly share code, notes, and snippets.

@iangilman
Created October 20, 2010 23:31
Show Gist options
  • Save iangilman/637583 to your computer and use it in GitHub Desktop.
Save iangilman/637583 to your computer and use it in GitHub Desktop.
Resets Firefox Panorama to have all tabs in a single group
/* 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();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment