Skip to content

Instantly share code, notes, and snippets.

@trecloux
Forked from micbase/feedly.user.js
Last active June 2, 2020 22:04
Show Gist options
  • Save trecloux/03f920f071abb767fe5606bd9b1ce34e to your computer and use it in GitHub Desktop.
Save trecloux/03f920f071abb767fe5606bd9b1ce34e to your computer and use it in GitHub Desktop.
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('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);
@vvvlad
Copy link

vvvlad commented Nov 21, 2017

Hey,
This script is not working for me (FF57).
Opens tabs in foreground only.
Is it outdated?
Thanks!

@henricook
Copy link

Did you ever get this working @vvvlad?

@vvvlad
Copy link

vvvlad commented May 22, 2020

@henricook I did find some script that worked, or modified this one, but don't remember which.
Later switched to inoreader and never had this type of a problem anymore.
Sorry couldn't help more with this...

@gordonpn
Copy link

gordonpn commented Jun 2, 2020

Thanks for the script! It works for me. Chrome + Tampermonkey.

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