Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created August 11, 2009 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeal/165982 to your computer and use it in GitHub Desktop.
Save mikeal/165982 to your computer and use it in GitHub Desktop.
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