jdpro/jd_video_view.js

6 lines
108 KiB
JavaScript
Raw Normal View History

2024-07-03 03:32:18 +00:00
/*
1 1 1 1 * jd_video_view.js
*/
const $ = new Env('看视频赚现金-浏览');
2024-07-05 02:27:56 +00:00
var _0xodA='jsjiami.com.v7';const _0x1acba4=_0x34d2;(function(_0xa5a463,_0x118d91,_0x15ae56,_0x2e634e,_0x102f03,_0xb1f604,_0x3bf912){return _0xa5a463=_0xa5a463>>0x7,_0xb1f604='hs',_0x3bf912='hs',function(_0x2fe18a,_0x1cf82c,_0x180e44,_0x4a9c31,_0xf396be){const _0x19ef28=_0x34d2;_0x4a9c31='tfi',_0xb1f604=_0x4a9c31+_0xb1f604,_0xf396be='up',_0x3bf912+=_0xf396be,_0xb1f604=_0x180e44(_0xb1f604),_0x3bf912=_0x180e44(_0x3bf912),_0x180e44=0x0;const _0x4a45f7=_0x2fe18a();while(!![]&&--_0x2e634e+_0x1cf82c){try{_0x4a9c31=-parseInt(_0x19ef28(0x447,'y7on'))/0x1+-parseInt(_0x19ef28(0x5fb,'$V$1'))/0x2*(-parseInt(_0x19ef28(0x240,'S)T0'))/0x3)+-parseInt(_0x19ef28(0x2a1,'@]%N'))/0x4*(parseInt(_0x19ef28(0x3bf,'Bkhx'))/0x5)+parseInt(_0x19ef28(0x3ce,'79!l'))/0x6+-parseInt(_0x19ef28(0x432,'*lFC'))/0x7*(-parseInt(_0x19ef28(0x5bf,'GuV1'))/0x8)+-parseInt(_0x19ef28(0x3aa,'kWIM'))/0x9+parseInt(_0x19ef28(0x52b,'JsOw'))/0xa;}catch(_0x5e0261){_0x4a9c31=_0x180e44;}finally{_0xf396be=_0x4a45f7[_0xb1f604]();if(_0xa5a463<=_0x2e634e)_0x180e44?_0x102f03?_0x4a9c31=_0xf396be:_0x102f03=_0xf396be:_0x180e44=_0xf396be;else{if(_0x180e44==_0x102f03['replace'](/[qCRLlenAJETrgfd=]/g,'')){if(_0x4a9c31===_0x1cf82c){_0x4a45f7['un'+_0xb1f604](_0xf396be);break;}_0x4a45f7[_0x3bf912](_0xf396be);}}}}}(_0x15ae56,_0x118d91,function(_0x3f1ce2,_0x3aaa7d,_0x26eca5,_0x1bb404,_0x1769f1,_0x29d1dd,_0x2c91a1){return _0x3aaa7d='\x73\x70\x6c\x69\x74',_0x3f1ce2=arguments[0x0],_0x3f1ce2=_0x3f1ce2[_0x3aaa7d](''),_0x26eca5=`\x72\x65\x76\x65\x72\x73\x65`,_0x3f1ce2=_0x3f1ce2[_0x26eca5]('\x76'),_0x1bb404=`\x6a\x6f\x69\x6e`,(0x1758ce,_0x3f1ce2[_0x1bb404](''));});}(0x6680,0x1dbf6,_0x204e,0xcf),_0x204e)&&(_0xodA=_0x204e);function _0x204e(){const _0x3b3fb7=(function(){return[...[_0xodA,'EJqejdsCEjRniagfCmlir.cnomlCA.Cnvq7TgneL==','W7VcHGzLBW','W7NcRCk7a0KCW4/cJCoJW5fBff7dGq','W5/cJHbvtG','WR87W5lcOvW','W5xcNfPBW60','W57cSCk5juG','W5DXW4NdUCko','g14wlSkp','hSoAjfud','WO0AW7BcSvy','W55Nb8olWQy','WQVdMNGCWRC','rxRcNG','WP/cHSoxW6SX','eMpcJ8oXja','W7RdVCoRxg8','r13dGYazW6T7WRS','lJ7cNr9o','W6hdRmo0vuq','ASk4wSkfna','W6pcItZcPbu','iSkcsmk1W6u','WOf+W6ysW6C','edpcSGPG','EmkjW74Hxa','c8oWWQBcTIXkWPG','W4n/gCogWR7dMNRdKCoC','WPzyW6eHW4z1WOS','e8kdbComWO0','W513WOZdT1q','W7FdINpdNCo4','o8k6o8oSWRO','w8kVWOBcQHf+WPTn','k8kAe8o6WOu','WR1Isq53','WPHxW4qKW4C','g2ldKCkcva','W7DUhCoFWPG','zHGz','hmkeW5edW6e','W4aAsSodcuW','W5tdGCoczCoUoshdJmkkW48','W6BcNhThW74','cCowWPtdK8oo','W5/dONZdTSoz','5PA75AER5yM4','nMlcGmoYoHPHs8osWPf4t8k0W6zqCSknW7LdW7BcGGb4dmkgWRaw','W4RcTSksahu','jK7cKCoDla','fWdcGJv/','e8otv8obya','W4xcO3fBW5a','FquCWRCsW5Sy','W5nWW7pdGmkI','WRFcQCkV','WP1KvXfk','omoQWPRdG8oN','e8k7aXNdHG','W5P+WO7dOgu','jCoRWP7dH8kRu8kRDJ5F','wgRdMsKB','WP5HW6SsW6lcUCkX','W6JcUhnmWP1yWRS','nCoFj0er','FCohFCkGWRJdLG','xLNdGZGuW6vT','u2ldM27dTW','W45bW4RdKSkpvffOhG','h8kgWR3dOqS','rSkRW7uyyW','qN3dMhy','CXmKWROAW5yp','WQS+W4RcN00','hSoCWR9jnW','W5DqdmoGi8oIva','W7KLxt/cVa','xCk7hCohWOa','z8obFSkaWQxdU8kCF8k7DavHW5biW6mPx8k/6k6e5Ro15AwQ6lEy77YL6k2K5Qgw5PYy57+26lAT6yE26k+4','W5iyrdpcH8o9gSksvSkU','CW4lWRKiW5SeWPa','Eg/dQauZ','WPFcS8k2mmoU','p8oLFSkCWPe','bSo2WQu','d8oLWP5pcG','eCkArSkQW5K','gxZcVSo6mq','rmkSi8osWPtcTG4','WRf2W6ihW6m','WQJcISkKrSka','WQ7cNLhdGcK','lSofWQ7dJCoEWPLZz2FcMg44','EYrHC8kxvSoOW4uGW5a','W4FcGSkEc1m','W79onGxdQSkmWOxdQG','cCkmW5e/','W4eAv8oxhepcNW','eSk7psddLq','w2xdLXGm','lCoHWP/dKG','W6rrcSoPnG','qwBdMwVdOmo+kMKm','W5mqtq/cT8o9fCkwCCkPlCk/WPyDf8kt','W5zOftJdJG','W6ddSCo8v38','fG1zw8oG','dCkYWRhdJrW','WQKrW5lcOwe','hhNdI8ksua','WPhcRmkkt8kw','W4BdONhdOmo4','W7n7gq','W6q8FaNcOa','zCkFBSksdSkN','W5ZdTmopBLa','WRHOCrjf','6k245Rkg5AEU6lwd77YQ6k6p5QgQ5PYC57+t6lwx6yE66k6a','WRNcS8osldpdRvHbW4FdKCo3cSoJW7CecfpcI8kkW5CqENpcR8kyACkjW4pdRG','x8kgW7WWFc7cVejfWPyuWQGmfsVcV8oOpuRcLCk2W7pcT8kcWQ3dRG','eSo6pwem','WRBcP8k8BSks','e8oYdMy2','FmonACkwWQVdG8kp','mmosoq','W4VdO3NdL8o8','WPdcNCoxW6Kb','xmkHcSoeWOm','WO7dHSo0ldu','WQzZvILMymoh','WRPRzajW','W5xcVhLx','dchcL3r9','WQBcG8oy','a1RcNSoAja','FSkvW6/cSSkoW5DM','sSkMnmoe','x13dIs4hW4vNWQpdGmkLWQ3dKrS0t1dcLgpcKSkiW7ddKmk1za','W6Hokru','W6lcOCkSfuCFW48','WO7cTCkT
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