[JavaScript] 纯文本查看 复制代码
var _0x13eaa1=_0x5caa47(this,function(){
var _0x5065bc=function(){
return 'dev';
},_0x31c6da=function(){
return 'window';
};
var _0x32a93e=function(){
var _0x461908=new RegExp('\\w+ *\\(\\) *{\\w+ *[\'|"].+[\'|"];? *}');
return!_0x461908.test(_0x5065bc.toString());
};
var _0x4ad626=function(){
var _0x2a300c=new RegExp('(\\\\[x|u](\\w){2,4})+');
return _0x2a300c.test(_0x31c6da.toString());
};
var _0x5903f1=function(_0x1b023e){
var _0x27b985=~-0x1>>0x1+255%0;
if(_0x1b023e.indexOf('i'===_0x27b985)){
_0x39f874(_0x1b023e);
}
};
var _0x39f874=function(_0xc8efad){
var _0x3de876=~-0x4>>0x1+255%0;
if(_0xc8efad.indexOf((true+'')[3])!==_0x3de876){
_0x5903f1(_0xc8efad);
}
};
if(!_0x32a93e()){
if(!_0x4ad626()){
_0x5903f1('indеxOf');
}else{
_0x5903f1('indexOf');
}
}else{
_0x5903f1('indеxOf');
}
});
_0x13eaa1();
var _0x4dc354=_0x107f04(this,function(){
var _0x30673c=function(){};
var _0x1f39a0=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;
if(!_0x1f39a0.console){
_0x1f39a0.console=function(_0x30673c){
var _0x374a15={};
_0x374a15.log=_0x30673c;
_0x374a15.warn=_0x30673c;
_0x374a15.debug=_0x30673c;
_0x374a15.info=_0x30673c;
_0x374a15.error=_0x30673c;
_0x374a15.exception=_0x30673c;
_0x374a15.trace=_0x30673c;
return _0x374a15;
case '8':var _0x374a15={};
}(_0x30673c);
}else{
_0x1f39a0.console.log=_0x30673c;
_0x1f39a0.console.warn=_0x30673c;
_0x1f39a0.console.debug=_0x30673c;
_0x1f39a0.console.info=_0x30673c;
_0x1f39a0.console.error=_0x30673c;
_0x1f39a0.console.exception=_0x30673c;
_0x1f39a0.console.trace=_0x30673c;
}
});
_0x4dc354();
let _0x54d51e=null;
let _0x476565=null;
let _0x3f4c47='',_0x495579='',_0x3965fa='',_0x1c39f8='',_0x26b0eb='',_0x3e8596=true;
let _0x390090={
'connect'(){
return new Promise((_0x3f434e,_0x4ca142)=>{
if(_0x54d51e==null){
try{
if('WebSocket' in window){
_0x54d51e=new WebSocket(server_url);
}else{
_0x4ca142(-1);
}
_0x54d51e.onopen=_0x5cf707=>{
_0x3f434e(true);
};
_0x54d51e.onerror=_0x75483e=>{
if(_0x54d51e!=null){
_0x54d51e.close();
}
_0x4ca142(-2);
};
_0x54d51e.onmessage=_0x13da95=>{
let _0x9e7db8=JSON.parse(this.decryptPackData(_0x13da95.data));
if(_0x9e7db8.type==='url'){
if(!_0x9e7db8.url){
this.showError(true);
return;
}
this.initPlayerInstance(_0x9e7db8.url);
}
};
_0x54d51e.onclose=_0x1e77a9=>{
_0x54d51e=null;
};
}catch(_0x7fc0e2){}
}else{
switch(_0x54d51e.readyState){
case WebSocket.CONNECTING:
_0x3f434e(true);
break;
case WebSocket.OPEN:
_0x3f434e(true);
break;
case WebSocket.CLOSING:
_0x3f434e(this.connect(true));
break;
case WebSocket.CLOSED:
_0x54d51e=null;
_0x3f434e(this.connect(true));
break;
default:
break;
}
}
});
},'getPlayUrl'(_0x1ad6f6){
if(!_0x1ad6f6){
return;
}
_0x3f4c47=_0x1ad6f6;
_0x1c39f8=CryptoJS.MD5(_0x3f4c47).toString();
if(_0x476565!=null){
_0x476565.video().pause();
}
$('#loading').show();
$('.app').hide();
$('#error').hide();
let _0x4e4cb8=this.createSign(_0x1ad6f6);
this.sendMessage({'type':'getUrl','url':_0x1ad6f6,'sign':_0x4e4cb8});
},'createSign'(_0x2a1b59){
var _0x58f418='55ca5c4d11424dcecfe16c08a943afdc';
return CryptoJS.HmacSHA256(_0x2a1b59,_0x58f418).toString();
},'toNext'(){
if(!_0x3e8596){
_0x476565.showToast({'message':'没有更多剧集了~','duration':5000});
return;
}
if(_0x476565!=null){
_0x476565.video().pause();
}
$('#loading').show();
$('.app').hide();
$('#error').hide();
top.postMessage({'type':'next'},'*');
},'sendMessage'(_0x2b1b72){
if(_0x54d51e!=null){
let _0x1b3c43=this.strToArrayBuffer(this.encryptPackData(JSON.stringify(_0x2b1b72)));
if(_0x54d51e.readyState===1){
_0x54d51e.send(_0x1b3c43);
}
}
},'strToArrayBuffer'(_0x1ae349){
var _0x28bf63=new Uint8Array(_0x1ae349.length);
for(var _0x597219=0;_0x597219<_0x1ae349.length;_0x597219++){
_0x28bf63[_0x597219]=_0x1ae349.charCodeAt(_0x597219);
}
return _0x28bf63.buffer;
},'getKeys'(){
var _0x2cb732='55ca5c48a943afdc';
var _0xcc9c03='d11424dcecfe16c0';
return[CryptoJS.enc.Utf8.parse(_0x2cb732),CryptoJS.enc.Utf8.parse(_0xcc9c03)];
},'decryptPackData'(_0x437f92){
let[_0x3ccd3b,_0x33d02e]=this.getKeys();
var _0x3a8e8c=CryptoJS.enc.Hex.parse(_0x437f92);
var _0x6de751=CryptoJS.enc.Base64.stringify(_0x3a8e8c);
const _0x3abf1b=CryptoJS.AES.decrypt(_0x6de751,_0x3ccd3b,{'iv':_0x33d02e,'mode':CryptoJS.mode.CBC,'padding':CryptoJS.pad.Pkcs7});
return _0x3abf1b.toString(CryptoJS.enc.Utf8);
},'encryptPackData'(_0x12e9ed){
let[_0x43f1a4,_0x19793f]=this.getKeys();
var _0x1e1ded=CryptoJS.enc.Utf8.parse(_0x12e9ed);
const _0x2d31da=CryptoJS.AES.encrypt(_0x1e1ded,_0x43f1a4,{'iv':_0x19793f,'mode':CryptoJS.mode.CBC,'padding':CryptoJS.pad.Pkcs7});
return _0x2d31da.ciphertext.toString().toUpperCase();
},'showError'(_0x775d50){
if(_0x775d50){
$('#loading').hide();
$('#error').show();
$('.app').hide();
}else{
$('#loading').hide();
$('#error').hide();
$('.app').show();
}
},'initPlayerInstance'(_0x283ebe){
if(_0x476565){
_0x476565.toggleControls();
_0x476565.destory();
}
var _0x4aac01=false;
let _0x1118bf={'container':'.app','themeColor':'#FF6429','src':_0x283ebe,'title':_0x495579,'showMiniProgress':true,'poster':'','autoplay':true,'initFullFixed':true,'dragSpotShape':'circula','lang':'zh-cn','volume':'1','showLoading':true,'custom':{'footerControls':[{'slot':'nextMedia','position':'left','tooltip':'下一集','oftenShow':true,'click':_0x368378=>{
this.toNext();
},'style':{}}]},'videoAttribute':[{'attrKey':'webkit-playsinline','attrValue':'webkit-playsinline'},{'attrKey':'playsinline','attrValue':'playsinline'},{'attrKey':'x5-video-player-type','attrValue':'h5-page'}],'plugins':[new MuiPlayerDesktopPlugin({'leaveHiddenControls':true,'customSetting':[{'functions':'画面比例','model':'select','show':true,'zIndex':0,'childConfig':[{'functions':'默认','fit':'default','selected':true},{'functions':'裁剪'},{'functions':'填充'}],'onToggle':function(_0x130015,_0x2e41c0,_0x868580){
if(_0x130015.functions==='裁剪'){
_0x476565.video().style.objectFit='cover';
}else if(_0x130015.functions==='填充'){
_0x476565.video().style.objectFit='fill';
}else{
_0x476565.video().style.objectFit='contain';
}
_0x2e41c0();
}},{'functions':'画质增强','model':'switch','show':true,'zIndex':0,'onToggle':(_0x169df6,_0x432f67,_0x5a74bf)=>{
if(!_0x4aac01){
_0x476565.video().style.filter='contrast(1.01) brightness(1.05) saturate(1.1)';
}else{
_0x476565.video().style.filter='none';
}
_0x4aac01=!_0x4aac01;
_0x432f67();
}}],'fullScaling':1,'contextmenu':[{'name':'website','context':'555电影','zIndex':9999999999,'click':function(_0x4e9975){
window.open('https://www.5ying.fun');
}}]}),new MuiPlayerMobilePlugin({'key':'01I01I01H01J01L01K01J01I01K01J01H01D01J01G01E','showMenuButton':true})]};
if(_0x283ebe.indexOf('.m3u8')!==-1){
_0x1118bf.parse={'type':'hls','loader':Hls,'config':{'debug':false}};
}
_0x476565=new MuiPlayer(_0x1118bf);
this.initListen();
},'initListen'(){
document.querySelector('#mplayer-error').addEventListener('click',_0x100b7c=>{
let _0x481f71=confirm('很抱歉给您带来不好的体验,是否将此错误反馈至管理员?');
if(_0x481f71){
let _0x2ae531='加载视频出现错误,用户手动触发上报';
console.log({'type':'feedback','content':_0x2ae531,'site_url':_0x26b0eb,'user_agent':navigator.userAgent});
}
});
_0x476565.on('ready',()=>{
this.showError(false);
if(!_0x3e8596){
$('[slot=nextMedia]').hide();
}
let _0x511455=_0x476565.video();
let _0x1ca4f9=0;
_0x511455.addEventListener('loadedmetadata',()=>{
$('#loading').hide();
let _0x487967=localStorage.getItem(_0x1c39f8);
if(_0x487967>1){
_0x511455.currentTime=_0x487967;
}
});
_0x511455.addEventListener('loadeddata',()=>{});
_0x511455.addEventListener('canplay',()=>{});
_0x511455.addEventListener('timeupdate',()=>{
let _0x27b8e6=Math.floor(_0x511455.currentTime);
if(_0x27b8e6<1)return;
if(_0x27b8e6===_0x1ca4f9){
return;
}
_0x1ca4f9=_0x27b8e6;
localStorage.setItem(_0x1c39f8,_0x27b8e6);
});
_0x511455.addEventListener('ended',()=>{
localStorage.removeItem(_0x1c39f8);
this.toNext();
});
});
_0x476565.on('error',function(_0x3f5fc9){
console.log(_0x3f5fc9);
});
_0x476565.on('volume-change',function(_0xc84772){
_0x476565.video().volume=_0xc84772.size;
});
}
};
window.addEventListener('message',_0x5b2f34=>{
let _0x540e44=_0x5b2f34.data;
if(_0x540e44.type==='wait'){
if(_0x476565!=null){
_0x476565.video().pause();
}
$('#loading').show();
$('#error').hide();
$('.app').hide();
return;
case '2':$('.app').hide();
}
if(_0x540e44.type==='change'){
_0x495579=_0x540e44.title;
_0x3965fa=_0x540e44.jump;
_0x26b0eb=_0x540e44.site_url;
_0x3e8596=Boolean(_0x3965fa);
_0x390090.connect().then(_0x3ec5cb=>{
if(_0x3ec5cb===-1){
alert('浏览器不支持,请更换浏览器');
this.showError(true);
return;
}
if(_0x3ec5cb===true){
_0x390090.getPlayUrl(_0x540e44.url);
}
});
}
});