/*
* @title ニコ動はてブ数表示V2
* @description ニコニコ動画の動画ページでいい感じのところにはてなブックマークのブックマーク数を表示する。新「はてなブックマークボタン」版
* @include http://www.nicovideo.jp/watch/*
* @include http://nine.nicovideo.jp/watch/*
* @license MIT License
*/
(function(){
var a=document.getElementById('outside').innerHTML;
var v=Video.v; //この行を消して、
//var v=unsafeWindow.Video.v; //この行のコメントアウトを戻せばグリモンでも使える。
a='<span style="margin-right:4px;"><a href="http://b.hatena.ne.jp/entry/www.nicovideo.jp/watch/'+v+'" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a></span>'+document.getElementById('outside').innerHTML;
document.getElementById('outside').innerHTML=a;
(function(){var s=document.createElement('script');s.type='text/javascript';
s.src='http://b.st-hatena.com/js/bookmark_button.js';
document.body.appendChild(s);})();
})();