Skip to content

Instantly share code, notes, and snippets.

@hotchpotch
Created April 15, 2009 13:36
Show Gist options
  • Save hotchpotch/95766 to your computer and use it in GitHub Desktop.
Save hotchpotch/95766 to your computer and use it in GitHub Desktop.
// ==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