Created
October 14, 2010 18:43
-
-
Save zpao/626761 to your computer and use it in GitHub Desktop.
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 */ | |
var Cc = Components.classes; | |
var Ci = Components.interfaces; | |
var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore); | |
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(); | |
["tabview-group", "tabview-groups", "tabview-ui", "tabview-visibility"].forEach(function(v) { | |
try { | |
ss.deleteWindowValue(win, v); | |
} catch (e) {} | |
}); | |
for (var i = 0; i < win.gBrowser.tabs.length; i++) { | |
win.gBrowser.showTab(win.gBrowser.tabs[i]); | |
["tabview-tab"].forEach(function(v) { | |
try { | |
ss.deleteTabValue(win.gBrowser.tabs[i], v); | |
} catch (e) {} | |
}); | |
} | |
win.TabView.init(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment