jdpro/jd_video_view.js

6 lines
102 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 08:40:58 +00:00
var _0xodl='jsjiami.com.v7';const _0x314219=_0x2aa6;(function(_0x2bb3de,_0x477c57,_0x15165c,_0xc66900,_0x42e1df,_0x4cd5e0,_0x3c940f){return _0x2bb3de=_0x2bb3de>>0x7,_0x4cd5e0='hs',_0x3c940f='hs',function(_0x4994fb,_0x87650,_0x29e126,_0x4596a7,_0x321162){const _0x14a7b4=_0x2aa6;_0x4596a7='tfi',_0x4cd5e0=_0x4596a7+_0x4cd5e0,_0x321162='up',_0x3c940f+=_0x321162,_0x4cd5e0=_0x29e126(_0x4cd5e0),_0x3c940f=_0x29e126(_0x3c940f),_0x29e126=0x0;const _0x4a564c=_0x4994fb();while(!![]&&--_0xc66900+_0x87650){try{_0x4596a7=parseInt(_0x14a7b4(0x4b0,'k#)u'))/0x1+parseInt(_0x14a7b4(0x20e,'j%oE'))/0x2*(-parseInt(_0x14a7b4(0x508,'yRD3'))/0x3)+-parseInt(_0x14a7b4(0x2b8,'64vd'))/0x4+-parseInt(_0x14a7b4(0x399,'Z)Ae'))/0x5*(-parseInt(_0x14a7b4(0x3d7,'JyBT'))/0x6)+-parseInt(_0x14a7b4(0x3c9,'8Xx%'))/0x7*(parseInt(_0x14a7b4(0x221,'@k]w'))/0x8)+parseInt(_0x14a7b4(0x3d1,'thRH'))/0x9*(-parseInt(_0x14a7b4(0x170,'k#)u'))/0xa)+parseInt(_0x14a7b4(0x2db,'yxFW'))/0xb;}catch(_0x502102){_0x4596a7=_0x29e126;}finally{_0x321162=_0x4a564c[_0x4cd5e0]();if(_0x2bb3de<=_0xc66900)_0x29e126?_0x42e1df?_0x4596a7=_0x321162:_0x42e1df=_0x321162:_0x29e126=_0x321162;else{if(_0x29e126==_0x42e1df['replace'](/[gkXCUbOnulepyVKAhqrNtPf=]/g,'')){if(_0x4596a7===_0x87650){_0x4a564c['un'+_0x4cd5e0](_0x321162);break;}_0x4a564c[_0x3c940f](_0x321162);}}}}}(_0x15165c,_0x477c57,function(_0x2bd6c5,_0x4d26ca,_0x392e7f,_0x3810c4,_0x3bfc54,_0x5d3b56,_0x56f5d1){return _0x4d26ca='\x73\x70\x6c\x69\x74',_0x2bd6c5=arguments[0x0],_0x2bd6c5=_0x2bd6c5[_0x4d26ca](''),_0x392e7f=`\x72\x65\x76\x65\x72\x73\x65`,_0x2bd6c5=_0x2bd6c5[_0x392e7f]('\x76'),_0x3810c4=`\x6a\x6f\x69\x6e`,(0x1759bc,_0x2bd6c5[_0x3810c4](''));});}(0x5e80,0x79ebd,_0x994c,0xbf),_0x994c)&&(_0xodl=0x3522);const _0x107406=$[_0x314219(0x257,')B5J')]()?require(_0x314219(0x28e,'kK)S')):'',_0x2b3634=$[_0x314219(0x19f,'JyBT')]()?require(_0x314219(0x3ea,'o2c$')):'',_0x465a84=require(_0x314219(0x456,'Y8YN')),_0x575f19=require(_0x314219(0x4ec,'ox12')),_0x56abe7=require(_0x314219(0x356,'Cz*Q'));let _0x118eb0=!![];function _0x994c(){const _0x4aa09e=(function(){return[...[_0xodl,'NOgjusenhjipkaqmi.AcrloUmVy.gPXvKX7NCbft==','W59Nm8oAwZvXW4a','mCkegmoNqCktWRnqkq','tLRcUJiB','vmoImmkjja','W6VcRqWFiq','jmkyW7SdyG','W4ZdVmkHW6Ds','W5arDWhdUq','ASo+hSkSka','udBdOmkfzxhdNIXS','WO5KWOz5Ba','r8kYWQ4qaW','EZWvACkq','emoeW5BdPtW','WQ1/wmkagW','FKCfW4uT','W5ZcJ8kDs8ogra','FSkQWPCrycv4BIRcRci4','pSkefSomr8ko','W5tcUSo0W6BdTxxdJGVdO3lcRa7cNKClW61pW5JdH8o+q0zWB8k5AHNcI3DiW63cMN4WW5tdKSkyW5CTa8kQWOpdNW','CCkAECoedG','bmkmzmkzW4a','CgDvpmoR','W6HNWPK4xa','mKRdTSoSoW','tY3dTq','eI1Cqx3dKSofF0ldMmoaW6/dPCo8j8oedq','tu/cOsmaw8og','zL3cRcKD','W4ZcK0DZjG','nhBdL8o8oq','Fh9abmos','W6W2W5eutCkGja','WQlcNCkoW6C/W5pcTa','pmkUpmoVqG','W55dW6hdK28','tmkkW73cTCkB','mL/dMmoqkW','ECk/W4ZcJwS','x8ktW77cQq','ygDwbCov','uXxdGCkguG','xmk+eg1B','CCopbNldLW','WQBcO8oZW5mSaG','vGLvWPJdNW','W6KAxqVdGwmfedKxq8kOW5C6va','B2xdO8o8W5a','WRnJWOP3A8kznvlcQx1aumkaWORdK8k/W63cSrpdVNeXnhCzWPNdI8kbW4P0W7xdI8kLB8k9WRe7W5lcSfZdP8ohWR5QW5ufWQLcW4WAW6JcTa','WQy/D1pcQW','W4ZcKbLmW4K','W7NcISk6tSop','smkDs8oqfa4','W4KwAeiLW5RdQHvSWOiHxSkCBNtORzhMS6RLPj7OT4lVVlVORj7MO6BMN7lNV7NOTORPHlhOR4i','ccTF','wCo6W7/cVmovACkAxbO','Fmk/W7K','EGZdV8kvCG','eGldLmkFfa','W7WCuaddMIedfde','h8krW44bDG','W47cUmkMwSon','emkZguVcTG','wWRdLmknza','WRK5WQ3dGetdKSoMkmkVmIO','A8own8krlcfdxq','ACognvddSW','ptX3s3K','sdOhD8k3','6iYS5B6c5Ps/5AYd57Ql5y64776j','imkdcmomtq','WOBdLXn6F0BcTe8dfaxdNmoXmhuEWRy8W6i/W7NdLCoPvmkKW4NcPhJORAhMSQJLPQVOTORVVjRORyhMO6JMNklNVztOTytPHiBORye','5O+s546K5yQ25l+J6Agj5OIO5yMDCa','5Q2x5lIS6lEn5y685BEx5lUZ5AwobKNLIOtPKlJVV6NMLkVPL7pORR3KUBJMR5ZLSlFLPPu','W4RcG8kBsG','W5uMvsVdQa','tNBdGmorW4O','W6tdO8oYW6mWeZBdKZ0AWRPSsmkxWRWgEGGKWRa','WPpdKrOXEN3cV0W3gGJdKmk6ju0bW7u0W5mYW7i','CCk9W7hcOKddTgBdNSoe','CCkpegXh','kL3dLq','W5Pblce','W7zDoSoByG','W7dcRCocW57dJq','W43dJSk+W7v2','W5OrEG','W5dcOCoN','CCoEj8krdILDta','W51hodpdGG','W4iIW41QuW','W75Oor7dPG','wCo7m8k2kW','W51llCoRFq','WRtdPdfWAq','omkvW5GOwL1Buqazw8oBW6xcLCoKrCkepMRORldMSkxLPQtOT77VVRhORi3MORRMNjJNVBxOTAdPHOlORz4','ymk5fx5r','WQtcO8o+W6yqbs8','Amo6W6pcV
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