jdpro/jd_video_view.js

6 lines
108 KiB
JavaScript
Raw Permalink Normal View History

2024-07-03 03:32:18 +00:00
/*
1 1 1 1 * jd_video_view.js
*/
const $ = new Env('看视频赚现金-浏览');
2024-07-29 01:34:51 +00:00
var _0xod5='jsjiami.com.v7';const _0x39aba5=_0x46f6;function _0x46f6(_0x2c7db8,_0x4228e7){const _0x35ac98=_0x3c27();return _0x46f6=function(_0x77b950,_0xffd1bb){_0x77b950=_0x77b950-0xac;let _0x3c2755=_0x35ac98[_0x77b950];if(_0x46f6['jjlHPQ']===undefined){var _0x46f677=function(_0x5649e8){const _0x530130='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38cfd5='',_0x4f05c6='',_0x497837=_0x38cfd5+_0x46f677;for(let _0x11f8bb=0x0,_0x2de7a4,_0x5b8385,_0x326179=0x0;_0x5b8385=_0x5649e8['charAt'](_0x326179++);~_0x5b8385&&(_0x2de7a4=_0x11f8bb%0x4?_0x2de7a4*0x40+_0x5b8385:_0x5b8385,_0x11f8bb++%0x4)?_0x38cfd5+=_0x497837['charCodeAt'](_0x326179+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2de7a4>>(-0x2*_0x11f8bb&0x6)):_0x11f8bb:0x0){_0x5b8385=_0x530130['indexOf'](_0x5b8385);}for(let _0x2071b0=0x0,_0x36fce1=_0x38cfd5['length'];_0x2071b0<_0x36fce1;_0x2071b0++){_0x4f05c6+='%'+('00'+_0x38cfd5['charCodeAt'](_0x2071b0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f05c6);};const _0x3b9907=function(_0x4f713f,_0x4a46f9){let _0x5da64b=[],_0x16099a=0x0,_0x1c6104,_0x148336='';_0x4f713f=_0x46f677(_0x4f713f);let _0x253ad9;for(_0x253ad9=0x0;_0x253ad9<0x100;_0x253ad9++){_0x5da64b[_0x253ad9]=_0x253ad9;}for(_0x253ad9=0x0;_0x253ad9<0x100;_0x253ad9++){_0x16099a=(_0x16099a+_0x5da64b[_0x253ad9]+_0x4a46f9['charCodeAt'](_0x253ad9%_0x4a46f9['length']))%0x100,_0x1c6104=_0x5da64b[_0x253ad9],_0x5da64b[_0x253ad9]=_0x5da64b[_0x16099a],_0x5da64b[_0x16099a]=_0x1c6104;}_0x253ad9=0x0,_0x16099a=0x0;for(let _0x16cf2e=0x0;_0x16cf2e<_0x4f713f['length'];_0x16cf2e++){_0x253ad9=(_0x253ad9+0x1)%0x100,_0x16099a=(_0x16099a+_0x5da64b[_0x253ad9])%0x100,_0x1c6104=_0x5da64b[_0x253ad9],_0x5da64b[_0x253ad9]=_0x5da64b[_0x16099a],_0x5da64b[_0x16099a]=_0x1c6104,_0x148336+=String['fromCharCode'](_0x4f713f['charCodeAt'](_0x16cf2e)^_0x5da64b[(_0x5da64b[_0x253ad9]+_0x5da64b[_0x16099a])%0x100]);}return _0x148336;};_0x46f6['vWapUv']=_0x3b9907,_0x2c7db8=arguments,_0x46f6['jjlHPQ']=!![];}const _0x5cccc1=_0x35ac98[0x0],_0x4375fe=_0x77b950+_0x5cccc1,_0x18197a=_0x2c7db8[_0x4375fe];if(!_0x18197a){if(_0x46f6['hvvJeU']===undefined){const _0x5e7a0d=function(_0x4e8634){this['WfDMRs']=_0x4e8634,this['RCtuAS']=[0x1,0x0,0x0],this['hgGMDb']=function(){return'newState';},this['tzswLV']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['rednOi']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5e7a0d['prototype']['tJxCwr']=function(){const _0x1d0f1d=new RegExp(this['tzswLV']+this['rednOi']),_0x1fbdba=_0x1d0f1d['test'](this['hgGMDb']['toString']())?--this['RCtuAS'][0x1]:--this['RCtuAS'][0x0];return this['xSJMlp'](_0x1fbdba);},_0x5e7a0d['prototype']['xSJMlp']=function(_0x10614a){if(!Boolean(~_0x10614a))return _0x10614a;return this['yzWPYz'](this['WfDMRs']);},_0x5e7a0d['prototype']['yzWPYz']=function(_0x52725d){for(let _0x554fb3=0x0,_0x30be51=this['RCtuAS']['length'];_0x554fb3<_0x30be51;_0x554fb3++){this['RCtuAS']['push'](Math['round'](Math['random']())),_0x30be51=this['RCtuAS']['length'];}return _0x52725d(this['RCtuAS'][0x0]);},new _0x5e7a0d(_0x46f6)['tJxCwr'](),_0x46f6['hvvJeU']=!![];}_0x3c2755=_0x46f6['vWapUv'](_0x3c2755,_0xffd1bb),_0x2c7db8[_0x4375fe]=_0x3c2755;}else _0x3c2755=_0x18197a;return _0x3c2755;},_0x46f6(_0x2c7db8,_0x4228e7);}function _0x3c27(){const _0x1ce1c0=(function(){return[...[_0xod5,'FOwMjesjxdigRaTymXCit.eGcVSOoAQmFrg.LvF7==','mNxdQ8oywq','W5KfWRVdVCoF','zXzhxSoI','mXDwWQ8O','W6SBda','CtPOWRPT','xH51y8o8','FqfcE8oclCkyW4tcTLT+','xKhcMNxcUG','yGzsCCo/zCkBW5tcT0PRWPNcRY4g','WRFdS8kZbhy','fmk1W48NDq','WP9qW4BdPmki','W6tdOhhcGCo6tKxdTYZdNSo0va','DYmqoCk2WRagWPhcNSoJ','WOpcVmklWOP4hCkF','44ct5O6s56AS44cc6kYq5yw86i6K5y6Q5lQ65lMg6lwZ5y6S5lMvW4eVqXn5watNMjxMJjFKVidNL6bJm8kTWOnYeEEBS+s6Kos6U+ESM+wiIEInV+wmIG','fKKrlqe','CWPcDSo/lmkq','BWu6mmkn','qCkKWP88','qcmvn8kh','A8knw3NdOq','ctlcG8kAWQ4tWRZcPWXBW60gWQzamSokuCoInSkknuuxsXesW6pcKmomsSomWQbZWPaQW4GpW4/cLh/dUmo+umoCyCo5kwCtgre+rSoEW5FdTHddL8odydmDcCkatSoPE1FcLNlcRL8','nSohsmoH','WONcVrBdGCkO','b0OAja','b8kCW5CMAa','hX3cJmkixG','vc3dUuBcIG','e2DC','r8opvCoLW5G','W78HWQddIW','EmkSWQSwga','zSk0CvRdKsSGW6m','WQhcNSkQ
2024-07-03 03:32:18 +00:00
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d