Last active
December 15, 2015 18:09
-
-
Save ethertank/5301374 to your computer and use it in GitHub Desktop.
「ツイッターでニコニコ動画のリンクをよく貼る方がいるが、あんまりログインしたくないんだよね~。」
そんな時はこれを使うのです。 www.nicovideo.jp It is popular in Japan is.
Often japanese add link in your Twitter timeline.
But it require login for viewing...
Now, Use this bookmarklet.
Niconico!
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
javascript:(function(d){var win=window.open(),doc=win.document,TITLE=d.title,vURL=d.URL,vID=vURL.replace(/http:\/\/www.nicovideo.jp\/watch\//g,'');doc.title=TITLE;doc.write('<h1>'+TITLE+'</h1><script type="text/javascript" src="http://ext.nicovideo.jp/thumb_watch/'+vID+'?w=490&h=307"></script><div>'+ d.getElementById('des_full').innerHTML+'</div><div>掲載URL : <a href="'+vURL+'">'+vURL+'</a></div>');doc.getElementsByClassName("font12")[0].removeChild(doc.getElementsByTagName("a")[0]);doc.body.style.fontFamily="arial,helvetica,meiryo,sans-serif";})(document); |
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
javascript: (function(d) { | |
var win = window.open(), | |
doc = win.document, | |
TITLE = d.title, | |
vURL = d.URL, | |
vID = vURL.replace(/http:\/\/www.nicovideo.jp\/watch\//g, ""); | |
doc.title = TITLE; | |
doc.write( | |
'<h1>' + TITLE + '</h1>' + | |
'<script type="text/javascript" src="http://ext.nicovideo.jp/thumb_watch/' + vID + '?w=490&h=307"></script><div>' + | |
d.getElementById("des_full").innerHTML + | |
'</div>' + '<div>掲載URL:<a href="' + vURL + '">' + vURL + '</a></div>' | |
); | |
doc.getElementsByClassName("font12")[0].removeChild(doc.getElementsByTagName("a")[0]); | |
doc.body.style.fontFamily = "arial,helvetica,meiryo,sans-serif"; | |
})(document); |
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
http://nicovideo.geo.jp/ にあるブックマークレットの方が便利。なぜならブックマーク可能だから。 | |
This tools is better than mine: http://nicovideo.geo.jp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment