Skip to content

Instantly share code, notes, and snippets.

@azu
Created February 12, 2009 13:35
Show Gist options
  • Save azu/62624 to your computer and use it in GitHub Desktop.
Save azu/62624 to your computer and use it in GitHub Desktop.
javascript:burl="http://www.nicovideo.jp/watch/";_p=location.href.indexOf(burl);if(_p!=-1){id=location.href.substring(burl.length);try{xmlReq=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){xmlReq=new XMLHttpRequest();}xmlReq.open("GET","/ranking_graph/mylist/daily/all/"+id,false);xmlReq.send(null);if(xmlReq.status==200){_result=xmlReq.responseText.match(/\bmyvideo\/([0-9]+)/);if(_result){window.open('http://www.nicovideo.jp/myvideo/'+_result[1], '_blank');}else{msg="公開されていません";};}else{msg="取得失敗しました";}}alert(msg);
//動画から投稿者のmyvideoを探すブックマークレット
//再生ページで実行
//元ネタ : http://d.hatena.ne.jp/tsukaban/20090212/p1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment