Created
October 20, 2010 23:31
-
-
Save iangilman/637583 to your computer and use it in GitHub Desktop.
Resets Firefox Panorama to have all tabs in a single group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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