Skip to content

Instantly share code, notes, and snippets.

@mikeal

mikeal/gist:165982

Created Aug 11, 2009
Embed
What would you like to do?
Tabs.prototype.__defineGetter__("activeTabIndex", function() {
return this.controller.window.gBrowser.tabContainer.selectedIndex;
})
Tabs.prototype.selectTabIndex = function(i) {
this.controller.window.gBrowser.selectTabAtIndex(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment