Forked from sblask/firegesture-logically-open-link-or-duplicate-tab-next-to-current.js
Last active
August 29, 2015 14:06
-
-
Save kafene/a63ca6f3ee38092c280f 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) { | |
gTabDeque.moveTabToSecondPlaceInDeque(gBrowser.loadOneTab(linkURL, {inBackground: true})); | |
return; | |
} | |
// else duplicate tab | |
gTabDeque.moveTabToSecondPlaceInDeque(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