Skip to content

Instantly share code, notes, and snippets.

@alexeyr
Forked from micbase/feedly.user.js
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save alexeyr/3fe7b7f91ec8c0cc8947 to your computer and use it in GitHub Desktop.

Select an option

Save alexeyr/3fe7b7f91ec8c0cc8947 to your computer and use it in GitHub Desktop.

Revisions

  1. alexeyr revised this gist Jul 17, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion feedly.user.js
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,8 @@
    // @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*://www.feedly.com/*
    // @include http*://*feedly.com/*
    // @grant GM_openInTab
    // ==/UserScript==

    var x;
  2. Qingyuan Zhang renamed this gist Jun 8, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Qingyuan Zhang created this gist Jun 8, 2013.
    26 changes: 26 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    // ==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*://www.feedly.com/*
    // ==/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');
    link = link.replace('?utm_source=feedly', '');
    event.stopPropagation();
    event.preventDefault();
    GM_openInTab(link);
    }
    }, true);