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(); |