Skip to content

Instantly share code, notes, and snippets.

@tpenguinltg
Last active December 8, 2015 22:58
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 tpenguinltg/7905e5bd600910675c48 to your computer and use it in GitHub Desktop.
Save tpenguinltg/7905e5bd600910675c48 to your computer and use it in GitHub Desktop.
Open blank tab next to current in Firefox/SeaMonkey
newTabIndex = gBrowser.tabContainer.selectedIndex + 1;
newTab = gBrowser.loadOneTab("about:blank", null, null, null, false, false);
gBrowser.moveTabTo(newTab, newTabIndex);
if (gURLBar) gURLBar.focus();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment