jdpro/jd_video_view.js

6 lines
106 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-11 17:16:18 +00:00
var _0xodE='jsjiami.com.v7';const _0x137ec4=_0x4b2c;if(function(_0xa8271b,_0x119d91,_0x8e7a1d,_0x27b429,_0x60bd1d,_0x1617db,_0x51afb2){return _0xa8271b=_0xa8271b>>0x1,_0x1617db='hs',_0x51afb2='hs',function(_0x155091,_0x55b443,_0x5ac95c,_0x10aa7b,_0x1359fe){const _0x4f5d3d=_0x4b2c;_0x10aa7b='tfi',_0x1617db=_0x10aa7b+_0x1617db,_0x1359fe='up',_0x51afb2+=_0x1359fe,_0x1617db=_0x5ac95c(_0x1617db),_0x51afb2=_0x5ac95c(_0x51afb2),_0x5ac95c=0x0;const _0xcc9967=_0x155091();while(!![]&&--_0x27b429+_0x55b443){try{_0x10aa7b=-parseInt(_0x4f5d3d(0x19d,'edSD'))/0x1+-parseInt(_0x4f5d3d(0x1be,'#FA^'))/0x2*(parseInt(_0x4f5d3d(0x1a5,'WEak'))/0x3)+-parseInt(_0x4f5d3d(0x351,'k971'))/0x4+parseInt(_0x4f5d3d(0x328,'KSo$'))/0x5*(-parseInt(_0x4f5d3d(0x602,'NDt!'))/0x6)+parseInt(_0x4f5d3d(0x583,'[yP@'))/0x7+-parseInt(_0x4f5d3d(0x554,'4G$V'))/0x8*(-parseInt(_0x4f5d3d(0x360,'UVP4'))/0x9)+-parseInt(_0x4f5d3d(0x617,'bWW!'))/0xa*(-parseInt(_0x4f5d3d(0x4a4,'2#zf'))/0xb);}catch(_0x21781f){_0x10aa7b=_0x5ac95c;}finally{_0x1359fe=_0xcc9967[_0x1617db]();if(_0xa8271b<=_0x27b429)_0x5ac95c?_0x60bd1d?_0x10aa7b=_0x1359fe:_0x60bd1d=_0x1359fe:_0x5ac95c=_0x1359fe;else{if(_0x5ac95c==_0x60bd1d['replace'](/[GDNWPtuKJyedfAqMOBXh=]/g,'')){if(_0x10aa7b===_0x55b443){_0xcc9967['un'+_0x1617db](_0x1359fe);break;}_0xcc9967[_0x51afb2](_0x1359fe);}}}}}(_0x8e7a1d,_0x119d91,function(_0x204a38,_0x565e1a,_0x3bf770,_0x399a01,_0x166b50,_0x3d90d0,_0x3bb604){return _0x565e1a='\x73\x70\x6c\x69\x74',_0x204a38=arguments[0x0],_0x204a38=_0x204a38[_0x565e1a](''),_0x3bf770=`\x72\x65\x76\x65\x72\x73\x65`,_0x204a38=_0x204a38[_0x3bf770]('\x76'),_0x399a01=`\x6a\x6f\x69\x6e`,(0x1784fb,_0x204a38[_0x399a01](''));});}(0x18c,0xa8819,_0x4e47,0xc8),_0x4e47){}const _0x27ac18=$[_0x137ec4(0x47f,'RP80')]()?require(_0x137ec4(0x3ce,'p8^L')):'',_0x484fb7=$[_0x137ec4(0x462,'6Z7]')]()?require(_0x137ec4(0x325,'H%Rp')):'',_0x40bbbb=require(_0x137ec4(0x3f5,'2BZ8')),_0x847d0f=require(_0x137ec4(0x232,'WpNF')),_0x49d4f4=require(_0x137ec4(0x54f,'WEak'));let _0x30913a=!![];if(process[_0x137ec4(0x456,'dTwz')][_0x137ec4(0x1d3,'bfkW')])try{require(_0x137ec4(0x2d0,'bWW!')),ccc=require(_0x137ec4(0x4fa,'KV50')),$[_0x137ec4(0x2c1,'CE&j')]=ccc[_0x137ec4(0x362,'WpNF')]($[_0x137ec4(0x300,'9Ady')][_0x137ec4(0x40d,'sR7e')]($)),$[_0x137ec4(0x372,'KV50')]=ccc[_0x137ec4(0x1a8,'KV50')]($[_0x137ec4(0x60f,'NM0Y')][_0x137ec4(0x1e1,'k971')]($));}catch{$[_0x137ec4(0x4ae,'LMk[')](_0x137ec4(0x51b,'#FA^')),$[_0x137ec4(0x37e,'t3uP')]=$[_0x137ec4(0x510,'p8^L')],$[_0x137ec4(0x421,'bWW!')]=$[_0x137ec4(0x35e,'dTwz')];}else $[_0x137ec4(0x624,'uqj4')]=$[_0x137ec4(0x2f8,'CE&j')],$[_0x137ec4(0x60d,'6Z7]')]=$[_0x137ec4(0x4c6,'vZL(')];let _0x2853cd=[],_0x2eacab='',_0x49f9b6='';const _0x5e40db=process[_0x137ec4(0x5da,'WpNF')][_0x137ec4(0x2c8,'#FA^')]?process[_0x137ec4(0x571,'LMk[')][_0x137ec4(0x3fe,'dTwz')]:'2';if($[_0x137ec4(0x462,'6Z7]')]()){Object[_0x137ec4(0x5d3,'3]Ik')](_0x484fb7)[_0x137ec4(0x3ff,'3]Ik')](_0x4fb168=>{const _0x569483=_0x137ec4;_0x2853cd[_0x569483(0x429,'bWW!')](_0x484fb7[_0x4fb168]);});if(process[_0x137ec4(0x21c,'uqj4')][_0x137ec4(0x31a,'2F4!')]&&process[_0x137ec4(0x604,'OIsz')][_0x137ec4(0x58d,'Den$')]===_0x137ec4(0x1f3,'RP80'))console[_0x137ec4(0x1f5,'^3Z^')]=()=>{};}else _0x2853cd=[$[_0x137ec4(0x53f,'#TMj')](_0x137ec4(0x2b6,'NDt!')),$[_0x137ec4(0x4e4,'5r%B')](_0x137ec4(0x50f,'9Ady')),..._0x17b6cd($[_0x137ec4(0x5ae,'bfkW')](_0x137ec4(0x572,'WpNF'))||'[]')[_0x137ec4(0x483,'H%Rp')](_0x512899=>_0x512899[_0x137ec4(0x1f1,'h!IN')])][_0x137ec4(0x3d0,'WEak')](_0x4025ca=>!!_0x4025ca);!(async()=>{const _0x179c4f=_0x137ec4,_0x5c68b6={'EBvhg':function(_0x177594,_0x28b5d7){return _0x177594+_0x28b5d7;},'UAAoH':function(_0x31f0df,_0x3b8905){return _0x31f0df===_0x3b8905;},'uTEQY':_0x179c4f(0x208,'h!IN'),'NjRAL':_0x179c4f(0x241,'opM['),'GHQWe':_0x179c4f(0x1ea,'2#zf'),'qunGN':_0x179c4f(0x42d,'bfkW'),'QBwRw':_0x179c4f(0x3e2,'rE^5'),'oyAfs':_0x179c4f(0x1b7,'bWW!'),'EySeb':_0x179c4f(0x590,'opM['),'ItxgX':_0x179c4f(0x398,'B)RS'),'cCphC':_0x179c4f(0x4bb,'LMk['),'zNEWt':function(_0x2ea687,_0x3654b3,_0xca831d,_0x154e97){return _0x2ea687(_0x3654b3,_0xca831d,_0
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