themysticgeek / Feedly Background Tab

// ==UserScript==
// @name           Feedly Background Tab
// @description    Open link by background tab for Feedly
// @include        http*://cloud.feedly.com/*
// @include        http*://feedly.com/*
// @grant          GM_openInTab
// @version 0.0.1
// ==/UserScript==

// code '89' is 'y'
var key = 89;

(function() {
  var onKeyDown = function(event) {
    if(event.keyCode == key && !event.shiftKey) {
     var target = document.getElementsByClassName('selectedEntry');
     if (target == null) {
       return;
     }
     link = target[0].getElementsByClassName('title read')[0].href;
     GM_openInTab(link);
   }
 }
 document.addEventListener('keydown', onKeyDown, false);
})();