Skip to content

Instantly share code, notes, and snippets.

@horimislime
Created December 21, 2011 08:32
Show Gist options
  • Save horimislime/1505238 to your computer and use it in GitHub Desktop.
Save horimislime/1505238 to your computer and use it in GitHub Desktop.
Opens selected entry on LDR with "v" key in another tab
// ==UserScript==
// @name ldr_open_entry_w_v
// @include http://reader.livedoor.com/reader/*
// @version 0.1
// ==/UserScript==
window.addEventListener("load", function() {
with(unsafeWindow){
Keybind.remove("v");
Keybind.add('v', function(){
var item = get_active_item(true);
if(item){
window.open(item.link,'_blank');
}
});
}
},false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment