jdpro/jd_video_view.js

6 lines
128 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-12-06 16:21:24 +00:00
function PgL6JEl(){}var kXNEpzm=Object['defineProperty'],kid4Fg,ZmpZIXf,fANbg0,Vyov0Dg,HPI1Qim,y_vni5,TgQ1Nv,TK87SiT,XZM4097,nUB06u,taHA4dK,nsAKspc,L7Tuow,A2zWAeF,CXc4oK,R_5TbuA,W8gQdm,lvOnu3,mKDyt4,Oe5xDT;function ZjYzifA(PgL6JEl){return kid4Fg[PgL6JEl>-0x3f?PgL6JEl+0x3e:PgL6JEl+0x50]}kid4Fg=uIwcZkH();function IMNmb7(PgL6JEl,kXNEpzm){ZmpZIXf(PgL6JEl,'length',{value:kXNEpzm,configurable:!0x0});return PgL6JEl}PgL6JEl(ZmpZIXf=Object.defineProperty,fANbg0=IMNmb7(VjJVwC((...kXNEpzm)=>{PgL6JEl(kXNEpzm.length=0x2,kXNEpzm[0xe2]=kXNEpzm[0x1]);return kXNEpzm[ZjYzifA(0x72)](kXNEpzm[0x0]())}),0x2)(K_hZaU,gletwH));var qR28SqP=[],ZLBBOde=[MDKKe6(0x0),MDKKe6(ZjYzifA(-0x2c)),MDKKe6(0x2),MDKKe6(0x3),MDKKe6(0x4),MDKKe6(0x5),MDKKe6(ZjYzifA(-0x18)),MDKKe6(0x7),MDKKe6(0x8),MDKKe6(0x9),MDKKe6(0xa),MDKKe6(0xb),MDKKe6(0xc),MDKKe6(ZjYzifA(-0x25)),MDKKe6(0xe),MDKKe6(0xf),MDKKe6(0xe),MDKKe6(0xf),MDKKe6(ZjYzifA(0x2f)),MDKKe6(0x11),MDKKe6(0x12),MDKKe6(0x13),MDKKe6(ZjYzifA(-0xe)),MDKKe6(0x15),MDKKe6(0x16),MDKKe6(0x17),MDKKe6(0x18),MDKKe6(0x19),MDKKe6(0x1a),MDKKe6(0x1b),MDKKe6(0x1c),MDKKe6(ZjYzifA(0x1)),MDKKe6(0x1e),MDKKe6(0x1f),MDKKe6(0x20),MDKKe6(0x21),MDKKe6(0x22),MDKKe6(0x23),MDKKe6(0x24),MDKKe6(0x25),MDKKe6(ZjYzifA(0x28)),'8XW0>[0e$`167`yIBU8@f;&]6zIf5EwX*xWE7[*Ia6l@|}M',MDKKe6(0x27),MDKKe6(0x28),MDKKe6(0xf),MDKKe6(ZjYzifA(0x23)),MDKKe6(0x2a),MDKKe6(ZjYzifA(-0x36)),MDKKe6(0x2c),MDKKe6(0x2d),MDKKe6(0x2e),MDKKe6(0x2f),MDKKe6(0x30),MDKKe6(0x31),MDKKe6(0x32),MDKKe6(0x33),MDKKe6(0x34),MDKKe6(0x22),MDKKe6(0x35),'|p`^$[1j',MDKKe6(ZjYzifA(-0x2f)),'|pQ@q#NdM',MDKKe6(0x37),MDKKe6(0x38),MDKKe6(0x35),MDKKe6(ZjYzifA(0x12)),MDKKe6(0x3a),MDKKe6(0x3b),MDKKe6(0x3c),MDKKe6(0x34),'|p`^$[1jD/Gy|a{~e]',MDKKe6(0x3d),MDKKe6(0x31),MDKKe6(0x31),MDKKe6(0x3e),MDKKe6(0x2c),MDKKe6(0x3f),MDKKe6(0x40),MDKKe6(0x35),MDKKe6(0x41),MDKKe6(ZjYzifA(-0x15)),MDKKe6(0x43),MDKKe6(ZjYzifA(0x1f)),MDKKe6(0x45),MDKKe6(0x46),MDKKe6(0x47),'i0uw|h*~=Ty!]',MDKKe6(0x48),MDKKe6(0x49),MDKKe6(0x4a),MDKKe6(0x4b),MDKKe6(0x4c),MDKKe6(0x4d),MDKKe6(0x4e),MDKKe6(0x4f),MDKKe6(0x50),MDKKe6(0x51),MDKKe6(ZjYzifA(-0x2e)),MDKKe6(0x52),MDKKe6(0x4b),MDKKe6(0x53),MDKKe6(0x54),MDKKe6(ZjYzifA(-0x23)),MDKKe6(0x56),MDKKe6(0x57),MDKKe6(ZjYzifA(-0x3a)),MDKKe6(0x58),MDKKe6(ZjYzifA(-0x3d)),MDKKe6(ZjYzifA(-0x3c)),MDKKe6(0x5a),MDKKe6(0x5b),'?aehh%qZ)TJfF[|ln`]',MDKKe6(ZjYzifA(-0x33)),MDKKe6(0x5d),MDKKe6(0x5e),MDKKe6(ZjYzifA(-0x38)),MDKKe6(ZjYzifA(-0x35)),MDKKe6(0x60),MDKKe6(0x61),MDKKe6(ZjYzifA(-0x3b)),MDKKe6(0x47),MDKKe6(0x62),MDKKe6(0x63),MDKKe6(ZjYzifA(0x76)),MDKKe6(0x65),MDKKe6(0x66),'i0uw|hA]',MDKKe6(ZjYzifA(0x34)),MDKKe6(0x15),MDKKe6(0x68),MDKKe6(ZjYzifA(-0x31)),MDKKe6(0x55),MDKKe6(0x69),MDKKe6(0x22),MDKKe6(ZjYzifA(0x4b)),MDKKe6(ZjYzifA(0x4f)),MDKKe6(0x6c),MDKKe6(0x6d),MDKKe6(0x6e),MDKKe6(ZjYzifA(-0x3e)),MDKKe6(0x5a),MDKKe6(ZjYzifA(0x13)),MDKKe6(0x62),MDKKe6(0x64),MDKKe6(0x65),MDKKe6(0x6f),MDKKe6(0x70),MDKKe6(0x71),MDKKe6(0x72),'i0uw|hA]',MDKKe6(0x73),MDKKe6(0x74),MDKKe6(0x75),MDKKe6(0x76),MDKKe6(0x77),MDKKe6(0x78),MDKKe6(0x79),MDKKe6(0x7a),MDKKe6(0x7b),MDKKe6(ZjYzifA(0x15)),MDKKe6(0x7d),MDKKe6(0x7e),MDKKe6(0x7f),MDKKe6(0x80),MDKKe6(0x81),MDKKe6(ZjYzifA(0x59)),MDKKe6(0x83),MDKKe6(ZjYzifA(0x10)),MDKKe6(0x85),MDKKe6(0x86),MDKKe6(0x87),MDKKe6(0x88),MDKKe6(0x89),'sZS|e{cF',MDKKe6(0x8a),MDKKe6(0x8b),MDKKe6(0x8c),MDKKe6(0x8d),MDKKe6(ZjYzifA(-0x3e)),MDKKe6(0x8e),MDKKe6(0x8f),MDKKe6(0x90),MDKKe6(0x62),MDKKe6(0x91),MDKKe6(0x92),MDKKe6(0x93),'E9/DoR`m|j^tee:N(b@,.',MDKKe6(0x94),'2#,|?"<F',MDKKe6(0x95),MDKKe6(0x96),MDKKe6(0x97),MDKKe6(ZjYzifA(-0x2d)),MDKKe6(0x99),MDKKe6(ZjYzifA(0x5f)),MDKKe6(ZjYzifA(0x60)),MDKKe6(0x9c),MDKKe6(0x9d),MDKKe6(0x9e),MDKKe6(0x9f),MDKKe6(0xa0),MDKKe6(0x2a),MDKKe6(0xa1),'@S>w=1:<|x6Po',MDKKe6(0xa2),MDKKe6(ZjYzifA(0x84)),MDKKe6(0x68),MDKKe6(0xa4),MDKKe6(0xa5),MDKKe6(0x58),MDKKe6(0xa6),MDKKe6(0x5a),MDKKe6(ZjYzifA(-0x39)),MDKKe6(0x5c),MDKKe6(0x5d),MDKKe6(ZjYzifA(-0x37)),MDKKe6(0x30),MDKKe6(0x5f),MDKKe6(0x68),MDKKe6(ZjYzifA(0x8)),MDKKe6(0xa8),MDKKe6(ZjYzifA(-0x30)),MDKKe6(0xa9),MDKKe6(0xaa),MDKKe6(0xab),MDKKe6(ZjYzifA(-0xd)),MDKKe6(0x58),MDKKe6(ZjYzifA(-0x3d)),MDKKe6(ZjYzifA(-0x3c)),MDKKe6(ZjYzifA(-0x3b))
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