-
-
Save trecloux/03f920f071abb767fe5606bd9b1ce34e to your computer and use it in GitHub Desktop.
Feedly Tweak - Open feed item in background by pressing 'v'
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
// ==UserScript== | |
// @name Feedly Tweak - Open feed item in background by pressing 'v' | |
// @namespace http://micbase.com/feedly-tweak-open-item-background-tab-firefox | |
// @description Feedly Tweak - Open feed item in background by pressing 'v' | |
// @include http*://feedly.com/* | |
// @grant GM.openInTab | |
// ==/UserScript== | |
var x; | |
var link; | |
document.addEventListener('keypress', function(event) { | |
//if user press 'v' key, then open links in new tab in background | |
if (event.which == 118) { | |
x = document.getElementsByClassName('entry selected'); | |
//if no feed item selected, exit | |
if (x == null){ | |
return; | |
} | |
link = x[0].getAttribute('data-alternate-link'); | |
event.stopPropagation(); | |
event.preventDefault(); | |
GM.openInTab(link, true); | |
} | |
}, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the script! It works for me. Chrome + Tampermonkey.