Feedly Background Tab

Open link by background tab for Feedly

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

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

// code '84' is 't'
var key = 84;

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