Last active
August 29, 2015 13:57
-
-
Save sblask/9433181 to your computer and use it in GitHub Desktop.
Firegesture script to open link or duplicate tab in background.
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
// if the gesture started from a link, open link in new tab | |
var linkURL = FireGestures.getLinkURL(FireGestures.sourceNode); | |
if (linkURL) { | |
gBrowser.loadOneTab(linkURL, {inBackground: true}); | |
return; | |
} | |
// else duplicate tab | |
gBrowser.loadOneTab(gBrowser.currentURI.spec, {inBackground: true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment