Skip to content

Instantly share code, notes, and snippets.

@nobodyplace
Last active April 26, 2021 17:21
Show Gist options
  • Save nobodyplace/49ef88e54c29e65d9d70191665cf77a2 to your computer and use it in GitHub Desktop.
Save nobodyplace/49ef88e54c29e65d9d70191665cf77a2 to your computer and use it in GitHub Desktop.
ニコニコ動画 プレイヤー埋め込みコード ブックマークレット(展開)
javascript:
var a = location.href.match(/watch\/([^\/]+)/)[1];
var t = document.title.replace(/ - ニコニコ動画/,'');
var l='<script type="application/javascript" src="https://embed.nicovideo.jp/watch/'+a+'/script?w=720&h=480"></script><noscript><a href="https://www.nicovideo.jp/watch/'+a+'">'+t+'</a></noscript>';
prompt("code",l);
void(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment