Forked from sblask/firegesture-open-link-or-duplicate-tab-in-background.js
Last active
August 29, 2015 14:06
-
-
Save kafene/38b0d0a78e3765dd7c12 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
// 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