Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Feedly Tweak - Open feed item in background by pressing 'v'
// ==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('selectedEntry');
//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);

vvvlad commented Feb 26, 2016

Is this still a valid script? Not working for me on past 4 versions of Firefox.

Hi Michael,
It looks like feedly published a UI change, I updated the script to still be usable :
https://gist.github.com/trecloux/03f920f071abb767fe5606bd9b1ce34e/revisions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment