Created
December 21, 2011 08:32
-
-
Save horimislime/1505238 to your computer and use it in GitHub Desktop.
Opens selected entry on LDR with "v" key in another tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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