';
else if(vvid.match(/airav\..*hid=[0-9\-]{5,}/))mediaspace.innerHTML='';
else if(vvid.match(/youjizz\.com/))mediaspace.innerHTML='';
else mediaspace.innerHTML='';
return;}
else if(vid.match(/85porn\./)|| txt.match(/#.*avgle/) ||txt.match(/.qooqlevideo.com/)) {
mediaspace.innerHTML='';
return;}
else if(txt.match(/^#|^_|^Nulled|videofree\./) && !vid.match(/pornhub|youtube\.co/)){
mediaspace.style.maxWidth="1500";
if( vid.match(/thisav\.com.*?([0-9]{5,})/)) {
mediaspace.innerHTML='';}
else if( vmatch=vid.match(/xvideos\.com.*?([0-9]{5,})/)) {
var meta = document.createElement('meta');
meta.name = "referrer"; meta.content = "unsafe-url";
$('meta[name=referrer]').remove();
$('meta[name=referrer]').remove();
document.getElementsByTagName('head')[0].appendChild(meta);
mediaspace.innerHTML='';}
else if( vmatch=vid.match(/xhamster\.com.*?([0-9]{5,})/)) {
mediaspace.innerHTML='';}
else if( !vid.match(/thisav\.com|ero-video\./)) {
mediaspace.innerHTML='';}
if(tosettime)tosettime=3*tosettime;
return;}
else if(txt.match(/videofree\./)) {
mediaspace.innerHTML='';
document.getElementById("reembed").onload="this.sandbox=''";
errorjw="errorjw";toset="";
return;}
else if( vid.match(/youtube\.co|drive\.google|allthefallen.moe|pornhub|redtube/) ){
if(typeof(ppimage)!="undefined")pimage=ppimage;
if(vid.match(/watch\?v=([^\"\'\/]*)/))pimage='https://i.ytimg.com/vi/'+vid.match(/watch\?v=([^\"\'\/]*)/)[1]+"/hqdefault.jpg";
if(vvid.match(/^getfile-/)){
if(ytlist[gotlist].innerHTML.match(/src=\"([^\"]*\)9\.jpg)/))pimage=ytlist[gotlist].innerHTML.match(/src=\"([^\"]*\)9\.jpg)/)[1];
//if(typeof(totoset)!=='undefined'){toset=totoset;}
ytlist[gotlist].parentNode.insertBefore(document.getElementById("embed"),ytlist[gotlist].nextSibling);
ytlist[gotlist].scrollIntoView();}
console.log(pimage);
if(typeof(gotfile)=="undefined")gotfile=0;
if(txt.match(/mime=|phncdn|\[\{/) ){
try{//delete ytjson[ytkeys.length-1].u;
ytjson=JSON.parse(txt.replace(/(\]#.*?)$/,"]"));
ytkeys=Object.keys(ytjson);
if(vid.match(/redtube/) && ytjson[ytkeys.length-3].u){pfile=ytjson[ytkeys.length-3].u;}
else if(ytjson[ytkeys.length-1].u){pfile=ytjson[ytkeys.length-1].u;}
}
catch(e){pfile=txt.replace(/(\]#.*?)$/,"]");}console.log(txt);console.log(pfile);console.log(pimage);
//if(vid.match(/youtube/)){return;}
if((!vvid.match(/^getfile-/)|| !document.getElementById("m3u8vid")|| vid.match(/pornhub|redtube/))) loadmyplayer(pfile.replace(/#.*/,"")+"#"+pimage);
else gotfile=1;}
else if(vid.match(/redtube/)){mediaspace.innerHTML='';}
else {loadmyplayer('http'+vid);console.log(pimage);}
//else if(vvid.match(/^getfile-/)){myloop();console.log("loopnew");}
//else {setTimeout(function(){console.log("loopnew");myloop();},5000)}//loadmyplayer("getfile-"+"#"+pimage);
if(!vid.match(/youtube/) && gotfile==1){
console.log(toset);
//console.log(totoset);
setTimeout(function(){
//console.log(document.getElementById("m3u8vid").poster);
//videojs('m3u8vid').setSrc("https://i.ytimg.com/vi/"+vid.match(/watch\?v=([^\"\'\/&]*)/)[1]+"/maxresdefault.jpg");
document.getElementById("m3u8vid").getElementsByTagName("video")[0].poster=pimage;
videojs('m3u8vid').src({"type":"video/mp4", "src":pfile});
videojs('m3u8vid').on('load', function() {onvidplay(pfile)});
videojs('m3u8vid').play();
//delete ytjson[ytkeys.length-1].u;
videojs('m3u8vid').playbackRate(oldprate);
//videojs('m3u8vid').on('ended', function(){myloop});
},1000);
}
gotfile=0
ytext="";
if(typeof(ytkeys)=="undefined"||!vid.match(/youtube\.co|drive\.google/)){
if(document.getElementById("ytdl"))ytdl.innerHTML="";return}
for (i = ytkeys.length-1; i >0; i--) {
ytjson[i].f=ytjson[i].f.replace(/(^[0-9]* |DASH audio )/,'');
ytjson[i].f=ytjson[i].f.replace(/(DASH audio)/i,'');
utit="";
if(!ytjson[i].u.match(/\/manifest\//))utit="&title="+document.title;
ytext += "
";}
console.log(document.getElementsByTagName("h1")[0]);
ytext +="How to convert to MP3へ変換する方法!
";
// $("embed").append(ytext);
var node = document.createElement("div");
node.id="ytdl";
node.title='Youtube,Pornhub,Xvideos,Xhamsterなどの動画は、URLの"http"を"av4.xyz/v/"に置き換るだけでここでダウンロードできます。\nYou can download videos from Youtube, Pornhub, Xvideos, Xhamster etc. by simply replacing the "http" with "av4.xyz/v/" in the URL.\nYoutube,Xvideos,Xhamster的视频将URL的"http"部分替换为"av4.xyz/v/"即可在本站下载。';
// node.style.
if(!document.getElementById("ytdl")) document.getElementById("embed").appendChild(node);
else document.getElementById("ytdl").innerHTML=node.innerHTML;
document.getElementById("ytdl").innerHTML= "↓↓↓ Downloads of this Video only if legal in your location(合法である場合動画や音声をダウンロード) ↓↓↓:
"+ytext+"
";
//ytdl.onmousedown=function(){sendinfo('dload|||'+toset+'|||'+ppimage);console.log('dload|||'+toset+'|||'+ppimage);};
//tosettime=3*tosettime;
return;}
else if(vid.match(/youtube\.co/)){
loadmyplayer('http'+vid);console.log("noytfile");}
else if(txt.match(/google\.com\/file|youtube\.googleapis\.com|openload\./)) {
mediaspace.innerHTML='';
if(txt.match(/openload\./))tosettime=3*tosettime;
return;}
else if(txt.length>1){
loadmyplayer(txt);}
else if(vid.match(/javynow\./)) {
mediaspace.innerHTML='Flash対応のブラウザーで視聴してください。 You need a browser can play Flash format.
';
return;}
else {
// document.getElementById("embed").innerHTML= "
>>> Ooops! Tried but failed to load the video, you may try again later. <<<
"+document.getElementById("embed").innerHTML;
if( !vid.match(/ero-video\./)) document.getElementById("embed").innerHTML='';
errorjw="errorjw";toset="";}
return txt;
}
else {errorjw="errorjw";console.log(errorjw);
vid=vid.replace(/^\/poster\/http/,'');
if( vid.match(/ero-video\./)){
console.log('erov');
mediaspace.innerHTML='';}
else if(!vvid.match(/^(godl|getfile)-/))mediaspace.innerHTML='
Loading
......
';}
}
if(vid.match(/youtube\.com|twitter\//)&& vid.length%4<1)xmlhttp.open('GET','https://cacrz.tube-dl.top/?cacvlink=http'+encodeURIComponent(vid));
else xmlhttp.open('GET','https://cacrz.tube-dl.top/?cacvlink=http'+encodeURIComponent(vid));//
//if (typeof(lctcf)!="undefined" )xmlhttp.setRequestHeader('cake',lctcf);
//xmlhttp.setRequestHeader('Origin',location.href);
xmlhttp.timeout = 40000;
xmlhttp.send();
}
vvid='1';
function onvidplay(vfile){
if (typeof(vfile)=="undefined")novfile=1;
if(document.getElementById('embed'))jwvid=document.getElementById('embed').querySelectorAll('video, embed, object')[0];
else if(document.getElementById('mediaspace')){jwvid=document.getElementById('mediaspace').querySelectorAll('video, embed, object')[0];}
if(!jwvid){
var viframe = document.getElementById('reembed');
if(viframe){try {jwvid = (viframe.contentDocument || viframe.contentWindow.document).querySelectorAll('video, embed, object')[0];}catch (e){}
if(typeof(jwvid)!="undefined" && !jwvid.videoHeight)return;}}
if(jwvid) {
if(jwvid && jwvid.videoWidth) console.log(jwvid.videoWidth);
if(jwvid.videoHeight)console.log(jwvid.videoHeight);
if(jwvid.duration)console.log(jwvid.duration+vvid);
if(!document.getElementById("underVad")){
var underVad= document.createElement('div');
underVad.style="all: revert;";
underVad.id="underVad";
underVad.height=250;
underVad.innerHTML='';
jwvid.parentNode.insertBefore(underVad, jwvid.nextSibling);
underVad.parentNode.style="position:reletive;clear: both;";
//setInterval(function(){underVad.height.style="margin-top:"+underVad.querySelectorAll('iframe')[0].height;console.log(underVad.height)},5000)
}
}
if(vvid.match(/xhamster\.com/)&&jwvid.videoWidth==608&&jwvid.videoHeight==480&&jwvid.duration==2500){
mediaspace.innerHTML='';
jwvid=''; }
if(jwvid && jwvid.duration>1)todladd=Math.round(jwvid.duration).toString().toHHMMSS()+' @ '+jwvid.videoWidth+'x'+jwvid.videoHeight+'p
';
else todladd="";
if(typeof(toset)!="undefined" && jwvid && jwvid.videoHeight && jwvid.duration>1){
if(jwvid.videoHeight > jwvid.videoWidth)pvalue=jwvid.videoWidth;
else pvalue=jwvid.videoHeight;
tosetadd=' ['+Math.round(jwvid.duration).toString().toHHMMSS()+'x'+pvalue+'p]';
tosetadd=tosetadd.replace(/\[[0\:]*([0-9\:]{4,})/,"[$1");
console.log(tosetadd);
toset=toset.replace(/ (\[[0-9:xp]*\])<<>>/,'<<>>');console.log(toset);
toset=toset.replace(/( [^ ]{,2}?[0-9\:]+:[0-9][0-9]).?<<>>/,'<<>>');
toset=toset.replace(/<<>>/,tosetadd+'<<>>');}
if (typeof(vfile)!="undefined" && vfile.match(/thisav.*\.mpd/)){vfile=vfile.replace(/\.mpd/,'_dashinit.mp4');}
else if (jwvid && jwvid.src){vfile=jwvid.src;console.log(vfile);}
else if (typeof(vfileurl)!="undefined"){vfile=vfileurl;}
// if(typeof(vfileurl)!="undefined" && vfile.match(/blob:/))mesvid();
if(typeof(novfile)=="undefined" && typeof(vfile)!="undefined" && !vfile.match(/blob:|youtube\.com|\.m3u8|thisav.*\.mpd/)){console.log(vfile);
var vdloaddiv = document.createElement('div');
vdloaddiv.innerHTML='';
vdloaddiv.onmousedown=function(){mesvid();setInterval(function(){mesvid();sendinfo('dload|||'+toset+'|||'+ppimage);},0.5*tosettime);console.log('dload|||'+toset+'|||'+ppimage);};
if(document.getElementById("vdload"))document.getElementById("vdload").innerHTML=vdloaddiv.innerHTML;
else if( document.getElementById("embed"))document.getElementById("embed").appendChild(vdloaddiv);
else if( document.getElementById("mediaspace")){console.log(mediaspace.nextSibling);mediaspace.parentNode.insertBefore(vdloaddiv,mediaspace.nextSibling);}
}
if(!jwvid)return;
if(typeof(noerrorjw)!="undefined")return;
if(jwvid.src)console.log(jwvid.src);
if(typeof(tosettime)!="undefined"){
if(typeof(loadbegin)!="undefined" ){
if(!loadbegin){tosettime=tosettime*0.7;}else{ldspeed='slow';}}
if((jwvid.videoHeight/jwvid.videoWidth)<10/16 || (jwvid.videoWidth/jwvid.videoHeight)<10/16){tosettime=tosettime*0.8;}
if(jwvid.src && jwvid.src.match(/google|meetav|picasa|proxy|wp-content|direct\.php/) && !location.href.match(/youtube\.com/) ){
setTimeout('mesvid()',0.3*tosettime)}
else if(jwvid.videoWidth>700){
setTimeout('mesvid()',0.7*tosettime)}
else if(jwvid.videoWidth>400){
setTimeout('mesvid()',0.8*tosettime)}
else if(jwvid.videoWidth>200 || jwvid.duration>120){
setTimeout('mesvid()',0.9*tosettime)}
else{
setTimeout('mesvid()',0.95*tosettime)}
}
}
function loadmyplayer (vfile){console.log(vfile);
if(vfile.match(/checkbacklater|delete\.webm/) ){
mediaspace.style.maxWidth="1500",
mediaspace.innerHTML='';
tosettime=5*tosettime;
return;}
//if( vfile.match(/(allthefallen.moe)/) &&!(lmp==1) ){lmp=1;
// setTimeout(function(){loadvurl(toset.replace(/.*<<>>/,''))},200);
// return;}
if( vfile.match(/(^[^#]*javmix\.|^[^#]*tokyomotion[^#]*media)/) && !location.href.match(/\?/)){
location=location+'?';
return;}
else if(vfile.match(/xhcdn\.com|cdn13\.com|hotgoo|mp4|flv|pornhost|youtube|4shared/)||location.href.match(/erogen\.su|erome\.com|douga\.|city\./)){
console.log(window.document.getElementsByTagName('head')[0]);
var meta = document.createElement('meta');
meta.name = "referrer";
meta.content = "no-referrer";
if(!vfile.match(/javmix\.tv/)){
document.getElementsByTagName('head')[0].appendChild(meta);}
}
vfileurl=vfile;
if(vfile.match(/\.flv$/i))onvidplay(vfile);
var ua = window.navigator.userAgent;
if (ua.match(/MSIE|Trident|Edge\/|Opera/i) && !location.href.match(/vidjs=/)){/////&& location.href.match(/douga\.|city\./)
var vnote = document.createElement('a'); vnote.innerHTML = "再生に問題ある場合、Chromeなどのブラウザーで視聴してください。
如播放有問題,请改用Chrome等浏览器。
You may need Chrome to play this video smoothly.
";
(document.getElementById('embed')).insertBefore(vnote,document.getElementById('embed').childNodes[0]);}
if(window.navigator.userAgent.match(/.|Trident|edge|ios|safari/i) && !location.href.match(/vidjs=/) && (location.href.match(/jav\.re|porn-tube-club|erogen\.su|erome\.com|ztube\.org|jeune18\.com|amateuretsexe\.com|city\.to/) || vfile.match(/^[^#]*(wp-content\/|gslb.ru\/)/)) ){ /////|| (!txt.length && vid.match(/([0-9]{4,})/) && vid.match(/xhamster\.com\//))
mediaspace.innerHTML='';
return;}
// tosettime=0.7*tosettime;
if(vfile.match(/#/)){
if(vfile.match(/^#/))errorjw='posteronly';
pimage=vfile.replace(/.*#/,"");
}
else if(vfile.match(/youtube\.com/)){
pimage=vfile.replace(/.*=/,"");
pimage='http://poster.av4.xyz/pic.php?https://img.youtube.com/vi/'+pimage+'/0.jpg';}
if(window.location.host.match(/.*/)){pimage=pimage.replace('https://poster.av4.xyz/pic.php?http','/poster/');}
console.log(pimage);
vfile=vfile.replace(/#.*/,"");
startprm="start";
if(vfile.match(/\/mp4\//))startprm="ms";
else if(vfile.match(/xhcdnxxx/))startprm="starttime";
if(vfile.match(/meetav\.|cdn13\./))startprm="start";
else if(vfile.match(/xhcdnxxxx/))startprm="ec_seek";
if(typeof(prim)=="undefined")prim="html5";
if(window.navigator.userAgent.match(/MSIE|Trident|Edge\/|Opera/i) && (vfile.match(/xhcdn|cdn13/)||location.href.match(/city\./)))prim="flash";
//else if(location.href.match(/erogen\.su/))prim="flash";
else if(vfile.match(/xhcdn|cdn13|cdn1\.watch18xvideos|mp4/))prim="html5";
vtype=null;
if(vfile.match(/wp-content|\.mp4/)|| !vfile.match(/\.flv$/)){vtype="mp4";}
if(vfile.match(/mypornvid/)){vtype="mp4";startprm="ms";}
if(location.href.match(/hentaidream/) || vfile.match(/pagapau|\.mp4\/|mp4$|jav68\.|file\.mp4/)){vtype="mp4";}
if(vfile.match(/jav68\.|file\.mp4/)){vtype="mp4";startprm="start";}
if(vfile.match(/google/)){vtype="mp4";startprm="start";}
if(vfile.match(/18deny\./)){vtype="mp4";startprm="ms";}
if(vfile.match(/rtmp:|rtsp:/)){vtype=null;}
if(vfile.match(/\.m3u8/)){delete vtype;}
//if(vfile.match(/=m36$/)){vtype=null;}
if(top.location!=location || getCookie('cnt'))autost="true";
else autost= "false";
if(location.href.match(/xxxerogen\.su|toukoucity\./))autost= "false";
console.log(autost);
if(vfile.match(/xhcdn\.com|cdn13\.com|hotgoo|mp4|flv|pornhost|youtube|4shared/)||location.href.match(/erogen\.su|pornhub|douga\.|city\./)){
var meta = document.createElement('meta');
meta.name = "referrer";
meta.content = "no-referrer";
document.getElementsByTagName('head')[0].appendChild(meta);
}
if(vfile.match(/^myplaylst$/)){
jwplayer("mediaspace").setup({
width: "100%",
aspectratio: "16:9",
//height: "640",
flashplayer: "https://css.4jpg.top/jw6.1/jwplayer.flash6.6.swf",
// file: decodeURIComponent(vfile),
// primary: prim,
autostart: autost,
image: pimage,
logo: plogo,
// type: vtype,
startparam: startprm ,
});
jwplayer("mediaspace").setup(mplist);}
else if(vfile.match('youtube.com/watch')){
jwplayer("mediaspace").setup({
width: "100%",
aspectratio: "16:9",
//height: "640",
flashplayer: "https://css.4jpg.top/jw6.1/jwplayer.flash6.6.swf",
file: decodeURIComponent(vfile),
// primary: prim,
autostart: autost,
image: pimage,
logo: plogo,
// type: vtype,
startparam: startprm ,
});}
else if(vfile.match(/thisav.*\.mpd/)){
var s = document.createElement('script');
s.src = "https://www.thisav.com/player/video-js-shaka/player-skin.js";
document.getElementsByTagName("head")[0].appendChild(s);
s.async = true;
var s = document.createElement('script');
s.async = true;
s.src = "https://www.thisav.com/player/video-js-shaka/player.full.js";
document.getElementsByTagName("head")[0].appendChild(s);
var s = document.createElement('script');
s.async = true;
s.src = "https://www.thisav.com/player/video-js-thumbnail/thumbnail.js";
document.getElementsByTagName("head")[0].appendChild(s);
if(window.navigator.userAgent.match(/xxxiphone|xxxmac os/i)) mediaspace.innerHTML='再生不可の場合、下のダウンロードボタンをクリックするか、IPHONE以外の機器で再生してください。IPHONE User can click the download button to watch.
';
else{
var meta = document.createElement('meta');
meta.name = "referrer";
meta.content = "no-referrer";
document.getElementsByTagName('head')[0].appendChild(meta);
console.log('mpd');
iostxt="";
vidtype="application/dash+xml";
if(window.navigator.userAgent.match(/iphone|mac os/i)){
//vidtype="video/mp4";vfile=vfile.replace(/\.mpd/,'_dashinit.mp4');
iostxt='';}
mediaspace.innerHTML=iostxt+'';
(function(){
var vplayer = videojs('my-video', {
techOrder: ['shaka', 'html5'],
"playbackRates": [0.5, 1, 1.5, 2,5,10,15]
});
var onLoadedMetadata = function() {
//onvidplay(vfile.replace(/\.mpd/,'_dashinit.mp4'));
var thumbs = {};
for (let i = 0; i < 10; i++) {
thumbs[Math.floor(vplayer.duration()*i/10)+''] = {
src: `http://static.thisav.com/images/videothumbs/`+vfile.match(/([0-9]+)\.mpd/)[1]+`${(i==0) ? '' : '-'+(i+1)}.jpg`,
style: {
left: '-80px',
bottom: '15px',
width: '160px'
}
}
}
vplayer.thumbnails(thumbs);
}
if (vplayer.readyState() < 1) {
// do not have metadata yet so loadedmetadata event not fired yet (I presume)
// wait for loadedmetdata event
vplayer.one("loadedmetadata", onLoadedMetadata);
}
else {
// metadata already loaded
onLoadedMetadata();}
vplayer.on("error", function(){
vidtype="video/mp4";vfile=vfile.replace(/\.mpd/,'_dashinit.mp4');
iostxt='';});
vplayer.ready(function() { this.hotkeys({volumeStep: 0.1, seekStep: 5, enableModifiersForNumbers: false});});
vplayer.ready(function() { this.play();});
})();}
// document.getElementById('my-video').onload=function(){onload(vfile)};
onvidplay(vfile);
}
else if(vfile.match(/m3u8|\.mpd|ero-video|phncdn|twimg|pornolomka|xvideos|theync|\/xhr\/|\.mp4|\.webm|media=hls\/|\.flv$|[0-9]\.flv\?/) ||( (vfile.match(/googlevideo.com/)||vvid.match(/youtube.com|nicovi|dailymotion/)) )){
vfile=vfile.replace(/(.*)master\.m3u8/,'https://fixedjs.jtube.top/poster/'+"$1"+'600kbps/playlist.m3u8');
// vfile=vfile.replace(/(.*manyse\..*\.m3u8)/,'https://fixedjs.jtube.top/poster/'+"$1");
$('meta[name=referrer]').remove();
var meta = document.createElement('meta');
meta.name = "referrer";
meta.content = "no-referrer";
document.getElementsByTagName('head')[0].appendChild(meta);
mediaspace.style.maxWidth="1500";
console.log("m3u8etc");
// if(vfile.match(/youku\.com|avgle\./))vfile="/poster/"+vfile;
m3u8error=function(){
console.log('m3u8');
this.onerror=null;
console.log(vfile);
if(hasFlash) console.log("hasflash");else console.log("noflash");
if(hasFlash && vfile.match(/ero-video|share-videos\.se|phncdn|pornolomk|erogen\.su|javmovie|javmobile|viuly|youku|youflix\.|\.flv$|[0-9]\.flv\?/)) {
videojs('m3u8vid').dispose();
var s = document.createElement('script');
s.src = "https://cdn.jsdelivr.net/npm/videojs-flash@2/dist/videojs-flash.min.js";
document.getElementsByTagName("head")[0].appendChild(s);
setTimeout(function(){
mediaspace.innerHTML='再生できない場合、他のブラウザーやデバイスで再生してください。
If can not playback, please switch browser or your device.
';
var setup = {
"techOrder" : ['flash'],
"playbackRates": [0.5, 1, 1.5, 2,5,10],
"autoplay": true,
flash: { swf: 'http://css.4jpg.top/videojs/video-js.swf'}
};
var player = videojs('m3u8vid', setup, function(){; });
player.ready(function() { this.hotkeys({volumeStep: 0.1, seekStep: 5, enableModifiersForNumbers: false});});
player.ready(function() { this.play();});
player.on('error',function(){playerror;});
player.on('load',function(){oconsole.log('loaded');nvidplay(vfile)});
console.log(document.getElementById('m3u8vid'));},500)
}
else if(vfile.match(/ero-video|erogen\.su|youku|\.flv|\.webm$|[0-9]\.flv\?/) && !window.navigator.userAgent.match(/android/i)) {
mediaspace.innerHTML='再生できない場合、他のブラウザーやデバイスで再生してください。
If can not playback, please switch browser or your device.
';
}
else if(!vfile.match(/r18\.com/) && vfile.match(/\.mp4/) && location.href.match(/\[[0-9:xp]{5,}\]$/)&& typeof(vurlloaded)=='undefined'){
console.log(vvid);loadvurl(location.href.match(/\/v\/(.*)\/title\//)[1]+'#'+pimage);vurlloaded=1;}
else if(typeof(Hls)!="undefined" && Hls.isSupported()) {
console.log('m3u8-hls');
var video = document.getElementById('m3u8vid');
var hls = new Hls();
hls.loadSource(vfile);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
video.play(); });
hls.on('load',function(){oconsole.log('loaded');nvidplay(vfile)});
hls.on('error',function(){oconsole.log('hlserror');playerror;});}
else {
console.log('m3u8-failed');
mediaspace.innerHTML='';
tosettime=3*tosettime;}
}
if(vfile.match(/(manyse\.|va02-edge.tmncdn.io).*.m3u8/)){
vfile="https://ruposter.tube4.top/mypro.php?"+vfile+"?2sa";
setTimeout(m3u8error,1000);
}
if(vfile.match(/googlevideo.com|phncdn|twimg|theync|xvideos|pornolomka|\.mp4|\.webm|\/xhr\//)&&!vfile.match(/m3u8/)){
vidtype="video/mp4";
// setTimeout(m3u8error,1000);
}
else if(vfile.match(/xxxxx\.mpd/)){
vidtype="video/mp4";vfile=vfile.replace(/\.mpd/,'_dashinit.mp4')
// setTimeout(m3u8error,1000);
}
else if(vfile.match(/\.webm/)){
vidtype="video/webm";console.log(vidtype);
}
else if(vfile.match(/youflix/)){
vidtype="application/vnd.apple.mpegurl";
// setTimeout(m3u8error,1000);
}
else vidtype="application/x-mpegURL";
ua='';
if(location.hostname.match(/ppp/))ua=window.navigator.userAgent;
try{videojs('m3u8vid').dispose();}catch(e){};
var s = document.createElement('script');
s.src = "https://cdn.sc.gl/videojs-hotkeys/latest/videojs.hotkeys.min.js";
document.getElementsByTagName("head")[0].appendChild(s);
if(vfile.match(/GGDOLSP69Q/)){document.getElementById("mediaspace").innerHTML='';
var s = document.createElement('script');
s.src = "https://vjs.zencdn.net/7.8.2/video.js";
document.getElementById("mediaspace").appendChild(s);
if(document.getElementById("m3u8vid"))console.log(vidtype);setTimeout(videojs('m3u8vid'),1000);return;}
else document.getElementById("mediaspace").innerHTML=ua+'';
var setup = {
"techOrder" : ['html5','flash','shaka', ],//
"playbackRates": [0.1,0.3,0.5,0.7, 1, 1.5, 2,3,4,5,8,10,15],
"autoplay": true };
if(vfile.match(/javmovie/)) {document.getElementById('m3u8vid').ready=m3u8error;videojs('m3u8vid').on('play',m3u8error); }
else {
var player = videojs('m3u8vid', setup, function(){console.log("set");});
player.ready(function() { this.hotkeys({volumeStep: 0.1, seekStep: 5, enableModifiersForNumbers: false});});
player.on('play',function(){
console.log("onplay");
console.log(vfile);
setTimeout(function(){onvidplay(vfile)},2000) ;
setTimeout(function(){
if(document.getElementById('embed').querySelectorAll('video, embed, object')[0])
m3u8vidwidth=document.getElementById('embed').querySelectorAll('video, embed, object')[0].videoWidth;
console.log("onplay");
console.log(m3u8vidwidth);
if(typeof(m3u8vidwidth)=="undefined" || m3u8vidwidth<10){if(vfile.match(/google|phncdn/))myloop();else if(!vfile.match(/youku/))playerror;}
},8000) });
if(vfile.match(/google|phncdn/)){
// videojs('m3u8vid').on('ended', myloop );
videojs('m3u8vid').on('error', playerror );
// if(typeof(ytlist)!="undefined")
// videojs('m3u8vid').on('error', function(){if(player.error().code==4) {player.dispose();console.log("myloop");setTimeout(function(){myloop()},2000)}} );
}
else videojs('m3u8vid').on('error',m3u8error);
// videojs('m3u8vid').play();
videojs('m3u8vid').on('ready',function() { this.play();});
//videojs('m3u8vid').ready(function() { this.play();});
// onvidplay(vfile);
}
}
else{
if(!vfile.match(/\.yjcontent|phncdn|youjizz/))vfile=decodeURIComponent(vfile);
jwplayer("mediaspace").setup({
width: "100%",
aspectratio: "16:9",
// height: "640",
flashplayer: "https://css.4jpg.top/jw6.1/jwplayer.flash6.6.swf",
file: vfile,
primary: prim,
autostart: autost,
image: pimage,
logo: plogo,
//if(!(vfile.match(/\.m3u8/)))
type: vtype,
startparam: startprm ,
});
jwplayer("mediaspace").onPlay(function(){console.log(vfile);setTimeout(onvidplay(vfile),600)});
jwplayer().onComplete(function(){
//var ytlist = [];var ii=0;
//if(!location.href.match(/youtube/))return;
//y=(document.getElementById('incontent')||document.getElementById('rellinks')).getElementsByTagName("a");
//for (var i=0; i';}
else if(vvid.match(/youtube.*watch\?v=(.*)/)){
mediaspace.innerHTML='';}
else if(vfile.match(/1080p\.mp4[#]?$/)){vfileb=vfile.replace(/1080p\.mp4/,"480p\.mp4");
document.getElementById('embed').querySelectorAll("video")[0].src=vfileb;}
else if(typeof(vid)!='undefined' && vid.match(/xhamster/) && !vid.match(/\?$/)){
loadvurl(vid+'?');console.log('hmster2');}
else if(typeof(vfile)!='undefined' && vfile.match(/cdn13\.|porn-tube\./) && prim=='html5'){
prim='flash';vvfile=vfile;setTimeout('loadmyplayer(vvfile)',1000);console.log('hmster3');
mediaspace.innerHTML='';
jwplayer("mplace").setup({
width: "100%",
aspectratio: "16:9",
// height: "640",
flashplayer: "https://css.4jpg.top/jw6.1/jwplayer.flash6.6.swf",
file: decodeURIComponent(vfile),
primary: prim,
autostart: autost,
image: pimage,
logo: plogo,
type: vtype,
startparam: startprm ,
});
delete errorjw;}
else if(typeof(vfile)!='undefined' && vfile.match(/cdn13\./)){
mediaspace.innerHTML='';
prim='flash';vvfile=vfile;setTimeout('loadmyplayer(vvfile)',1000);console.log('hmster3');return;}
else if(vfile.match(/\.flv/)){
var vnote = document.createElement('a'); vnote.innerHTML = "Flash対応のブラウザーで視聴してください。 You need a browser can play Flash format.
";
(document.getElementById('embed')).insertBefore(vnote,document.getElementById('embed').childNodes[0]);}
else if(vvid.match(/pornhub\.com|youporn|press\.vin|redtube\.com/)){
mediaspace.innerHTML='';}
else if(vfile.match(/\.mp4/) && location.href.match(/\[[0-9:xp]{5,}\]$/)&& typeof(vurlloaded)=='undefined'){
loadvurl(vvid);vurlloaded=1;}
else {
document.getElementById("embed").innerHTML='';
//toset="";sendinfo="";
}
}
setTimeout(function(){console.log(vfile);onvidplay(vfile)},3000);
}
function listplay(){y=(document.getElementById('incontent')||document.getElementById('rellinks')).getElementsByTagName("a");
var mediaspace = document.createElement("div");
//for (var i=0; i200)
document.cookie = c+"; expires=Thu, 01 Jan 1970 00:00:00 UTC";}
}
function beforeembed(){
document.write('