NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @license MIT
// @author 5chTubeExtender
// @name 2chTubeVideoPixel
// @namespace Violentmonkey Tiesto Scripts
// @match *://*.2ch.sc/*
// @run-at document-end
// @grant none
// @version 2026/03/30
// @description Version 2026/03/30
// @icon https://cdn-icons-png.flaticon.com/64/2504/2504965.png
// ==/UserScript==
// Must install Extentions [AdGuard],[Violentmoky],[Usar-Agent Switcher]
if(0){d=document.body.innerHTML;alert(d);}
(function(){db=document.body.innerHTML;const m=0;lh=location.href;lh=lh.split('?')[0].split('#')[0]+'/';locti=lh.split('/')[3];lhs=lh.split('/');srvti=lhs[2].split('.')[0];
Mlh='https://2ch.sc/bbstable.html';Blh='https://2ch.sc/'+locti+'/';Tlh=Blh+'subback.html';Blh+='#menu';
kara='';top='_top';blank='_brank';Xbox='<br><br> '+
'<a style=width:30%;height:12px; onClick=;window.open(Mlh,top)><center>2ch板一覧</center></a>'+
'<a style=width:30%;height:12px; onClick=;window.open(Blh,top)><center>板トップ</center></a>'+
'<a style=width:30%;height:12px; onClick=;window.open(Tlh,top)><center>スレッド一覧</center></a>'+
'<br><br> '+
'<a style=width:30%;height:12px; target=_blank href=https://youtube.com/embed/vadSoKKnCzg?playlist=vadSoKKnCzg,3wE9FPth818,bLeCiDaiDL8&loop=1&autoplay=1&><center>ドバイ未来ワールド</center></a>'+
'<a style=width:30%;height:12px; target=_blank href=https://artsandculture.google.com/project/versailles-never-seen-before><center>ベルサイユ宮殿3D</center></a>'+
'<a style=width:30%;height:12px; target=_blank href=https://youtube.com/embed/GRTDz-d1x8?playlist=zGRTDz-d1x8,X-XZx1o_w-A&loop=1&autoplay=1&><center>ディープ銀河宇宙</center></a>'+
'<br><br></b><b style=font-size:16px;>サーバー ( '+srvti+' ) '+document.title+' ( '+locti+' )</b>';
dh=document.head.innerHTML;if(1){sf='https://ja.savefrom.net/194jz';}else{pw='kpvid.pw/ja/';}
dh+='<style>dd{display:inline!important;text-decoration:none!important;}a{target:_top!important;}table{width:96%!important;}*{font-weight:700;}a,b{font-weight:1000!important;}body,dd,table,tr,td,div,p{background:none;background-color:#bbcced!important;}input,textarea{background-color:#fff;}input{height:16px;}textarea{width:100%!important!important;}</style>';
document.head.innerHTML=dh;videos='';
da=document.body.getElementsByTagName('a');for(i=0;i<da.length;i++){
di=da[i].href.replace('2ch.io/','').replace('youtube.com/embed/','youtu.be/').replace('?loop=1&autoplay=1&','').split('&pp=')[0].split('&t=')[0].split('?si=')[0].split('&list=')[0].split('?list=RD')[0];
if(di.indexOf('you')>0){if(di.indexOf('rU4QkIzgiWE')>0){;}else{
da[i].style='min-width:320px!important;';di=di.replace('http://','https://').replace(/(www|m)(\.you●?)/img,'you').replace(/(youtube\.com\/watch\?v\=)/img,'youtu.be/');
if(di.indexOf('?l')>0){;}else{di=di.replace(/(youtu\.be\/)([\d\w\_\-]{11})/img,'$1$2?list=RD$2');}
dj=di.replace(/(https?\:\/\/)(youtu\.be\/|youtube\.com\/embed\/|\d?i\.?ytimg\.com\/vi\/)([\d\w\_\-]{11})([^ \n\<]+$|$)/img,
di.replace(/(\?|\&)([^va])/img,'$1$2')+'</a><br><a href=https://youtube.com/embed/$3?loop=1&autoplay=1& target=_brank><img width=320 height=180 src=https://i.ytimg.com/vi/$3/mqdefault.jpg></a>'+
'<br><form style=display:inline;height:26px; method=get target=_blank action=https://www.youtube.com/results accept-charset=utf-8><input name=search_query type=text style=width:222px;height:22px!important; value=""><input style=position:relative;reft:150px;width:50px;height:28px!important; type=reset value=クリア><input style=width:50px;height:22px!important; type=submit value=検索></form><br>'+
//'<input style=width:110px;height:28px; type=button onClick=";window.open(Mlh,top);" value=2ch板一覧><input style=width:110px;height:28px; type=button onClick=";window.open(Blh,top);" value=板トップ><input style=width:110px;height:28px; type=button onClick=";window.open(Tlh,top);" value=スレッド一覧><br>');
'<a style=width:100px;height:12px; onClick=";window.open(Mlh,top);"><center>2ch板一覧</center></a><a style=width:100px;height:12px; onClick=";window.open(Blh,top);"><center>板トップ</center></a><a style=width:100px;height:12px; onClick=";window.open(Tlh,top);"><center>スレッド一覧</center></a><br>');
da[i].innerHTML=dj;da[i].href=di;i++;w=dj.split('/embed/')[1].substr(0,11)+'/';
videos=videos.replace(w,'').replace(w,'')+w;}}}
if(1){t=db.replace(/(youtt?ube\.com\/watch\?v\=|you●?tt?u\.be\/|ytimg\.com\/vi\/)([\d\w\_\-]{11})/img,'youtube.com/embed/$2 ');
if(t.indexOf('/embed/')>0){tx=t.split('/embed/');for(i=1;i<tx.length;i++){
w=tx[i].substr(0,11).replace(/([^\d\w\_\-]+)/img,'')+'/';if(w.length==12){;
videos=videos.replace(w,'').replace(w,'')+w;}}};}
Link=('<a href="'+sf+'" target=_blank>+SF</a> <a href=https://openuserjs.org/scripts/5chExtendr/2chTubeVideoPixel target=_blank>+JS</a> ');
videos=videos.replace(/(rU4QkIzgiWE|rz59mVFioi4|esN3hZtik8E)(\/)/img,'');//除外動画リスト
l=videos.split('/');videosN=l.length-1;if(videosN>=0){if(m){alert('★/'+locti+'/ '+document.title+'\n\n検出したビデオは '+videosN+' 個でした\n\n'+videos);}}location.replace('#menu');
p='https://youtube.com/embed/'+l[0]+'?playlist='+l[0];for(i=1;i<(Math.min(10,videosN));i++){p+=','+l[i];}p+='&loop=1&autoplay=1&';
Play=('<a href="'+p+'" target=_brank>2chTubeTV (10動画まで自動プレイ) </a> ');
Yload=('<a target=_brank href="https://www.youtube.com/">+YT</a> ');
VidX=('<b style=font-size:15px;color:red;>注目の動画 ('+videosN+')</b> '+Play+Yload+Link+'<br><br>');for(i=0;i<videosN;i++){V=l[i];
VidX+=('<a href='+('https://youtube.com/embed/'+V+'?loop=1&autoplay=1&')+' target=_blank>'+V+'<br><img width=64 height=36 src=https://i.ytimg.com/vi/'+V+'/mqdefault.jpg></a><wbr>');}
da=document.body.getElementsByTagName('td');for(i=0;i<da.length;i++){
di=da[i].innerHTML;if(di.indexOf('オリジナルで新しい')>0){dj=VidX;da[i].innerHTML=(wdt=di+'<b style=fontsize:3px;>'+dj+Xbox.replace(/(30\%)/img,'28%')+'</b>');}else{da[i].innerHTML+=''}}
;;;})()