nicoLivew
by
uzuky
2018-02-19 [2018/02/19 21:59:39]
ニコニコ生放送のプレイヤーだけ抜き出したりとかするやつ
@@ -2,15 +2,17 @@
* @description ニコニコ生放送のプレイヤーだけ抜き出したりとかする
* @license MIT License
*/
-javascript: (function () {
+
+
+javascript:!function() {
var L = document.location.href,
s = document.createElement('div'),
- h = document.documentElement.innerHTML;
- d = 'v20130823'
+ h = document.documentElement.innerHTML,
+ d = 'v20130823';
if (L.match(/live\.nicovideo\.jp\/watch/)) {
- h = h.replace(/(\n|\t)/g, '');
+ var h = h.replace(/(\n|\t)/g, ''),
h = h.replace(/.+url.+?(lv[0-9]{5,}).*/, '$1');
- s.innerHTML = '<b>プレイヤー変更</b><br><input type="button" value="QWatch" onClick="window.open(\'http://live.nicovideo.jp/nicoliveplayer.swf?v=' + h + '&languagecode=ja-jp\',\'_blank\',\'width=960,height=490\')"><input type="button" value="ニコファーレ" onClick="window.open(\'http://live.nicovideo.jp/liveplayer_farre.swf?v=' + h + '\',\'_blank\',\'width=960,height=520\')"><br><input type="button" value="原宿" onClick="window.open(\'http://live.nicovideo.jp/liveplayer.swf?v=' + h + '\',\'_blank\',\'width=950,height=520\')"><input type="button" value="普通のページ" onClick="window.open(\'http://live.nicovideo.jp/watch/' + h + '\')"><br><b>放送主用</b><br><input type="button" value="配信ツール(β)" onClick="window.open(\'http://live.nicovideo.jp/nicolivebroadcaster.swf?dicfilename=NicoliveBroadcasterDictionaryJAJP.swf&v=' + h + '\',\'_blank\',\'width=900,height=250\')"><input type="button" value="放送情報" onClick="window.open(\'http://live.nicovideo.jp/editstream/' + h + '\',\'_blank\',\'width=960,height=600,scrollbars=1\')"><br><input type="button" value="配信ツール(原宿)" onClick="window.open(\'http://live.nicovideo.jp/utility_v1.swf?v=' + h + '\',\'_blank\',\'width=950,height=200\')"> <small><a href="http://nico.ms/ar303976" target="_blank" title="support">' + d + '</a><b><br>※配信ツール(β)はニコ電とセッションが使えません<br>※配信ツール(原宿)はセッションがないです<br>※かんたん配信タブは1番最初に操作したウィンドウの<br>配信ツール(β)でいじってください<br>※放送情報変更の反映は少し時間がかかります</b></small>';
+ s.innerHTML = '<b>プレイヤー変更</b><br><input type="button" value="QWatch" onClick="var f = "flvplayer_container",flv = document.getElementById(f);flv.parentNode.removeChild(flv);window.open(\'http://live.nicovideo.jp/nicoliveplayer.swf?v=' + h + '&languagecode=ja-jp\',\'_blank\',\'width=960,height=490\');"><input type="button" value="ニコファーレ" onClick="var f = "flvplayer_container",flv = document.getElementById(f);flv.parentNode.removeChild(flv);window.open(\'http://live.nicovideo.jp/liveplayer_farre.swf?v=' + h + '\',\'_blank\',\'width=960,height=520\');"><br><input type="button" value="原宿" onClick="var f = "flvplayer_container",flv = document.getElementById(f);flv.parentNode.removeChild(flv);window.open(\'http://live.nicovideo.jp/liveplayer.swf?v=' + h + '\',\'_blank\',\'width=950,height=520\');"><input type="button" value="ページ更新" onClick="window.location.reload(true)"><br><b>放送主用</b><br><input type="button" value="配信ツール(β)" onClick="window.open(\'http://live.nicovideo.jp/nicolivebroadcaster.swf?dicfilename=NicoliveBroadcasterDictionaryJAJP.swf&v=' + h + '\',\'_blank\',\'width=900,height=250\')"><input type="button" value="放送情報" onClick="window.open(\'http://live.nicovideo.jp/editstream/' + h + '\',\'_blank\',\'width=960,height=600,scrollbars=1\')"><br><input type="button" value="配信ツール(原宿)" onClick="window.open(\'http://live.nicovideo.jp/utility_v1.swf?v=' + h + '\',\'_blank\',\'width=950,height=200\')"> <small><a href="http://nico.ms/ar303976" target="_blank" title="support">' + d + '</a><b><br>※配信ツール(β)はニコ電とセッションが使えません<br>※配信ツール(原宿)はセッションがないです<br>※かんたん配信タブは1番最初に操作したウィンドウの<br>配信ツール(β)でいじってください<br>※放送情報変更の反映は少し時間がかかります</b></small>';
s.style.color = 'rgb(250,250,250)';
s.style.textAlign = 'center';
s.style.padding = '10px';
@@ -26,7 +28,7 @@
P = prompt('放送IDかURL', '');
if (P.match(/lv[0-9]+/)) {
P = P.replace(/.+?(lv[0-9]+).*/, '$1');
- s.innerHTML = '<b>プレイヤー変更</b><br><input type="button" value="QWatch" onClick="window.open(\'http://live.nicovideo.jp/nicoliveplayer.swf?v=' + P + '&languagecode=ja-jp\',\'_blank\',\'width=960,height=490\')"><input type="button" value="ニコファーレ" onClick="window.open(\'http://live.nicovideo.jp/liveplayer_farre.swf?v=' + P + '\',\'_blank\',\'width=960,height=520\')"><br><input type="button" value="原宿" onClick="window.open(\'http://live.nicovideo.jp/liveplayer.swf?v=' + P + '\',\'_blank\',\'width=950,height=520\')"><input type="button" value="普通のページ" onClick="window.open(\'http://live.nicovideo.jp/watch/' + P + '\')"><br><b>放送主用</b><br><input type="button" value="配信ツール(β)" onClick="window.open(\'http://live.nicovideo.jp/nicolivebroadcaster.swf?dicfilename=NicoliveBroadcasterDictionaryJAJP.swf&v=' + P + '\',\'_blank\',\'width=900,height=250\')"><input type="button" value="放送情報" onClick="window.open(\'http://live.nicovideo.jp/editstream/' + P + '\',\'_blank\',\'width=960,height=600,scrollbars=1\')"><br><input type="button" value="配信ツール(原宿)" onClick="window.open(\'http://live.nicovideo.jp/utility_v1.swf?v=' + P + '\',\'_blank\',\'width=950,height=200\')"> <small><a href="http://nico.ms/ar303976" target="_blank" title="support">' + d + '</a><b><br>※配信ツール(β)はニコ電とセッションが使えません<br>※配信ツール(原宿)はセッションがないです<br>※かんたん配信のツールを2つ以上いじると<br>操作ができなくなったりします<br>※放送情報変更の反映は少し時間がかかります</b></small>';
+ s.innerHTML = '<b>プレイヤー変更</b><br><input type="button" value="QWatch" onClick="window.open(\'http://live.nicovideo.jp/nicoliveplayer.swf?v=' + P + '&languagecode=ja-jp\',\'_blank\',\'width=960,height=490\')"><input type="button" value="ニコファーレ" onClick="window.open(\'http://live.nicovideo.jp/liveplayer_farre.swf?v=' + P + '\',\'_blank\',\'width=960,height=520\')"><br><input type="button" value="原宿" onClick="window.open(\'http://live.nicovideo.jp/liveplayer.swf?v=' + P + '\',\'_blank\',\'width=950,height=520\')"><input type="button" value="普通のページ(別タブ)" onClick="window.open(\'http://live.nicovideo.jp/watch/' + P + '\')"><br><b>放送主用</b><br><input type="button" value="配信ツール(β)" onClick="window.open(\'http://live.nicovideo.jp/nicolivebroadcaster.swf?dicfilename=NicoliveBroadcasterDictionaryJAJP.swf&v=' + P + '\',\'_blank\',\'width=900,height=250\')"><input type="button" value="放送情報" onClick="window.open(\'http://live.nicovideo.jp/editstream/' + P + '\',\'_blank\',\'width=960,height=600,scrollbars=1\')"><br><input type="button" value="配信ツール(原宿)" onClick="window.open(\'http://live.nicovideo.jp/utility_v1.swf?v=' + P + '\',\'_blank\',\'width=950,height=200\')"> <small><a href="http://nico.ms/ar303976" target="_blank" title="support">' + d + '</a><b><br>※配信ツール(β)はニコ電とセッションが使えません<br>※配信ツール(原宿)はセッションがないです<br>※かんたん配信のツールを2つ以上いじると<br>操作ができなくなったりします<br>※放送情報変更の反映は少し時間がかかります</b></small>';
s.style.color = 'rgb(250,250,250)';
s.style.textAlign = 'center';
s.style.padding = '10px';
@@ -42,4 +44,4 @@
alert('放送IDが入ってないよ!\n' + P);
}
}
-})();
+}();
/* @title nicoLivew
* @description ニコニコ生放送のプレイヤーだけ抜き出したりとかする
* @license MIT License
*/
javascript:!function() {
var L = document.location.href,
s = document.createElement('div'),
h = document.documentElement.innerHTML,
d = 'v20130823';
if (L.match(/live\.nicovideo\.jp\/watch/)) {
var h = h.replace(/(\n|\t)/g, ''),
h = h.replace(/.+url.+?(lv[0-9]{5,}).*/, '$1');
s.innerHTML = '<b>プレイヤー変更</b><br><input type="button" value="QWatch" onClick="var f = "flvplayer_container",flv = document.getElementById(f);flv.parentNode.removeChild(flv);window.open(\'http://live.nicovideo.jp/nicoliveplayer.swf?v=' + h + '&languagecode=ja-jp\',\'_blank\',\'width=960,height=490\');"><input type="button" value="ニコファーレ" onClick="var f = "flvplayer_container",flv = document.getElementById(f);flv.parentNode.removeChild(flv);window.open(\'http://live.nicovideo.jp/liveplayer_farre.swf?v=' + h + '\',\'_blank\',\'width=960,height=520\');"><br><input type="button" value="原宿" onClick="var f = "flvplayer_container",flv = document.getElementById(f);flv.parentNode.removeChild(flv);window.open(\'http://live.nicovideo.jp/liveplayer.swf?v=' + h + '\',\'_blank\',\'width=950,height=520\');"><input type="button" value="ページ更新" onClick="window.location.reload(true)"><br><b>放送主用</b><br><input type="button" value="配信ツール(β)" onClick="window.open(\'http://live.nicovideo.jp/nicolivebroadcaster.swf?dicfilename=NicoliveBroadcasterDictionaryJAJP.swf&v=' + h + '\',\'_blank\',\'width=900,height=250\')"><input type="button" value="放送情報" onClick="window.open(\'http://live.nicovideo.jp/editstream/' + h + '\',\'_blank\',\'width=960,height=600,scrollbars=1\')"><br><input type="button" value="配信ツール(原宿)" onClick="window.open(\'http://live.nicovideo.jp/utility_v1.swf?v=' + h + '\',\'_blank\',\'width=950,height=200\')"> <small><a href="http://nico.ms/ar303976" target="_blank" title="support">' + d + '</a><b><br>※配信ツール(β)はニコ電とセッションが使えません<br>※配信ツール(原宿)はセッションがないです<br>※かんたん配信タブは1番最初に操作したウィンドウの<br>配信ツール(β)でいじってください<br>※放送情報変更の反映は少し時間がかかります</b></small>';
s.style.color = 'rgb(250,250,250)';
s.style.textAlign = 'center';
s.style.padding = '10px';
s.style.position = 'fixed';
s.style.zIndex = '9999';
s.style.fontSize = '12px';
s.style.border = '2px solid black';
s.style.right = '20px';
s.style.bottom = '20px';
s.style.background = 'rgba(0,128,255,0.5)';
document.body.appendChild(s);
} else {
P = prompt('放送IDかURL', '');
if (P.match(/lv[0-9]+/)) {
P = P.replace(/.+?(lv[0-9]+).*/, '$1');
s.innerHTML = '<b>プレイヤー変更</b><br><input type="button" value="QWatch" onClick="window.open(\'http://live.nicovideo.jp/nicoliveplayer.swf?v=' + P + '&languagecode=ja-jp\',\'_blank\',\'width=960,height=490\')"><input type="button" value="ニコファーレ" onClick="window.open(\'http://live.nicovideo.jp/liveplayer_farre.swf?v=' + P + '\',\'_blank\',\'width=960,height=520\')"><br><input type="button" value="原宿" onClick="window.open(\'http://live.nicovideo.jp/liveplayer.swf?v=' + P + '\',\'_blank\',\'width=950,height=520\')"><input type="button" value="普通のページ(別タブ)" onClick="window.open(\'http://live.nicovideo.jp/watch/' + P + '\')"><br><b>放送主用</b><br><input type="button" value="配信ツール(β)" onClick="window.open(\'http://live.nicovideo.jp/nicolivebroadcaster.swf?dicfilename=NicoliveBroadcasterDictionaryJAJP.swf&v=' + P + '\',\'_blank\',\'width=900,height=250\')"><input type="button" value="放送情報" onClick="window.open(\'http://live.nicovideo.jp/editstream/' + P + '\',\'_blank\',\'width=960,height=600,scrollbars=1\')"><br><input type="button" value="配信ツール(原宿)" onClick="window.open(\'http://live.nicovideo.jp/utility_v1.swf?v=' + P + '\',\'_blank\',\'width=950,height=200\')"> <small><a href="http://nico.ms/ar303976" target="_blank" title="support">' + d + '</a><b><br>※配信ツール(β)はニコ電とセッションが使えません<br>※配信ツール(原宿)はセッションがないです<br>※かんたん配信のツールを2つ以上いじると<br>操作ができなくなったりします<br>※放送情報変更の反映は少し時間がかかります</b></small>';
s.style.color = 'rgb(250,250,250)';
s.style.textAlign = 'center';
s.style.padding = '10px';
s.style.position = 'fixed';
s.style.zIndex = '9999';
s.style.fontSize = '12px';
s.style.border = '2px solid black';
s.style.right = '20px';
s.style.bottom = '20px';
s.style.background = 'rgba(0,128,255,0.5)';
document.body.appendChild(s);
} else {
alert('放送IDが入ってないよ!\n' + P);
}
}
}();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。