
Untitled
By: a guest on
Apr 27th, 2015 | syntax:
JavaScript | size: 0.59 KB | views:
174 | expires: Never
// ==UserScript==
// @name feedly link opener
// @namespace .
// @description Press Q to open all unread links on the feedly page.
// @include http://feedly.com/*
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener("keydown", keyDownFunc, false);
function keyDownFunc(e){
keycode = e.which;
if (keycode == 81){
openLinks();
}
}
function openLinks(){
var links = document.getElementsByClassName("title unread");
var hrefs = [];
for(i = 0; i < links.length; i+=1){
window.open(links[i].href, "_blank");
}
}