Created
April 15, 2009 13:36
-
-
Save hotchpotch/95766 to your computer and use it in GitHub Desktop.
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 add B! button | |
// @namespace http://rails2u.com/ | |
// @include http://reader.livedoor.com/reader/* | |
// @version 0.1 | |
// ==/UserScript== | |
(function(){ | |
var w = (typeof unsafeWindow == 'undefined') ? window : unsafeWindow; | |
w.entry_widgets.add('hb_add', function(feed){ | |
return [ | |
'<a href="http://b.hatena.ne.jp/add.confirm?url=', encodeURIComponent(feed.channel.link), '">', | |
'<img style="vertical-align:middle;border:none;" src="http://b.hatena.ne.jp/images/append.gif">', | |
'</a>' | |
].join(""); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment