mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
24 lines
99 KiB
JavaScript
24 lines
99 KiB
JavaScript
|
/*
|
|||
|
JOY_COIN_MAXIMIZE = 最大化硬币收益,如果合成后全部挖土后还有空位,则开启此模式(默认开启) 0关闭 1开启
|
|||
|
|
|||
|
请确保新用户助力过开工位,否则开启游戏了就不算新用户,后面就不能助力开工位了!!!!!!!!!!
|
|||
|
|
|||
|
如需关闭请添加变量,变量名:HELP_JOYPARK,变量值:false
|
|||
|
|
|||
|
此游戏黑号严重,所以请自行定时,火爆后停止放置一段时间恢复
|
|||
|
|
|||
|
地址:https://joypark.jd.com/?activityId=jBNXcoiASxGof0f2RFI2Sw
|
|||
|
|
|||
|
做合成 购买等,无助力,无任务
|
|||
|
|
|||
|
============Quantumultx===============
|
|||
|
|
|||
|
[task_local]
|
|||
|
#京东极简版-汪汪乐园
|
|||
|
1 1 1 1 * jd_jj_wwly.js, tag=京东极简版-汪汪乐园, enabled=true
|
|||
|
*/
|
|||
|
const $ = new Env('京东极简版-汪汪乐园');
|
|||
|
var version_='jsjiami.com.v7';const l11ll1=iii1II;(function(I1Il1i,i1l,IlIiII,iIliI,i1IlII,ilIii1,ll1III){return I1Il1i=I1Il1i>>0x7,ilIii1='hs',ll1III='hs',function(ll1II1,l11lii,IIlIii,l11lil,iIllli){const ll1IIl=iii1II;l11lil='tfi',ilIii1=l11lil+ilIii1,iIllli='up',ll1III+=iIllli,ilIii1=IIlIii(ilIii1),ll1III=IIlIii(ll1III),IIlIii=0x0;const iIlll1=ll1II1();while(!![]&&--iIliI+l11lii){try{l11lil=-parseInt(ll1IIl(0x1d5,'[[*0'))/0x1*(parseInt(ll1IIl(0x31b,'AR*N'))/0x2)+parseInt(ll1IIl(0x103,'rX$a'))/0x3+-parseInt(ll1IIl(0x28c,'8@#G'))/0x4*(parseInt(ll1IIl(0x1ae,'7#)l'))/0x5)+-parseInt(ll1IIl(0x25b,']62P'))/0x6+-parseInt(ll1IIl(0x1c9,'vy&L'))/0x7*(parseInt(ll1IIl(0x2be,'E971'))/0x8)+parseInt(ll1IIl(0x250,']62P'))/0x9*(parseInt(ll1IIl(0x295,'8@#G'))/0xa)+parseInt(ll1IIl(0x241,'UEV]'))/0xb*(parseInt(ll1IIl(0x1ef,'RfZX'))/0xc);}catch(ilIiiI){l11lil=IIlIii;}finally{iIllli=iIlll1[ilIii1]();if(I1Il1i<=iIliI)IIlIii?i1IlII?l11lil=iIllli:i1IlII=iIllli:IIlIii=iIllli;else{if(IIlIii==i1IlII['replace'](/[DLeMCGRTuHrSqfYQyJFK=]/g,'')){if(l11lil===l11lii){iIlll1['un'+ilIii1](iIllli);break;}iIlll1[ll1III](iIllli);}}}}}(IlIiII,i1l,function(I1Il1I,IIlIil,l11llI,i1IlIi,i1IlIl,ll1IIi,IlIiI1){return IIlIil='\x73\x70\x6c\x69\x74',I1Il1I=arguments[0x0],I1Il1I=I1Il1I[IIlIil](''),l11llI='\x72\x65\x76\x65\x72\x73\x65',I1Il1I=I1Il1I[l11llI]('\x76'),i1IlIi='\x6a\x6f\x69\x6e',(0x13b198,I1Il1I[i1IlIi](''));});}(0x5f00,0x6e8d1,Iii11l,0xc0),Iii11l)&&(version_=Iii11l);const iliIl=$['isNode']()?require(l11ll1(0x206,'8znF')):'',ii1i11=$[l11ll1(0xd5,'nlnX')]()?require(l11ll1(0x3b2,'7#)l')):'',ll11II=require(l11ll1(0x15c,'rX$a')),liIlII=require(l11ll1(0xab,'7STL')),Il1I=require(l11ll1(0x45c,'1Ala'));let iii1i=[],iii1l='',iliIi=![],iiil1I=0x0,llII11;if($['isNode']()){Object['keys'](iliIl)[l11ll1(0x102,']62P')](l1lii1=>{const iIlllI=l11ll1;iii1i[iIlllI(0x2dc,'UEV]')](iliIl[l1lii1]);});if(process[l11ll1(0x186,'AY[C')]['JD_DEBUG']&&process[l11ll1(0x7c,'A]wM')]['JD_DEBUG']===l11ll1(0x476,'XqfY'))console[l11ll1(0x405,'HV9y')]=()=>{};}else iii1i=[$[l11ll1(0x2d9,'k]fw')]('CookieJD'),$[l11ll1(0x3fb,'7#)l')](l11ll1(0x275,'AY[C')),...lIiII($[l11ll1(0x2cd,'[[*0')](l11ll1(0x399,'siHZ'))||'[]')[l11ll1(0x40c,'08PR')](ii1i1i=>ii1i1i['cookie'])][l11ll1(0x2e8,']62P')](IiIi11=>!!IiIi11);$[l11ll1(0x36e,'k]fw')]=process[l11ll1(0x140,'nlnX')][l11ll1(0xe1,'TP4u')]==='1',$[l11ll1(0x323,']62P')](l11ll1(0xdb,'siHZ')+($['JOY_COIN_MAXIMIZE']?l11ll1(0x350,'k]fw'):'关闭')+'\x20\x20');let lIiI1=Date['now']();const IiIi1i=l11ll1(0x3ef,'#)Zy');function Iii11l(){const lIlIi1=(function(){return[version_,'QrujMHsSDyjLiraqFmHi.CecGLGomR.JyvT7CfYK==','Ewiphw8','oCofEHNcMq','Fmk6WQrU6k+w5Rgt5AAj6lEi77YP6k2e5QoV5PY3572y6ls76yEx6k+0','W6VcQvC6','c27dRa','qgzDW4ZcUmkB44gb5lQ35lMF6lAO5y+A','w8k8WQmddwa','WQPaWRdcJYyL','rmkoW6BcUG','W6SGCmo+6k2a5RcV5AEU6lAL77Ys6k+65Qkt5P+V57Ys6lwH6yEX6k6P','WPCvWPNcISoBWRCZ','WRWbrfpcIa','x8ouDbe','ht53WOy0','44gsrgFdT3Tiaa','vmoJsa','WP8uWQuNBq','WQGormos','W45nsmoi','v0m/fCol','5lMI5lMo5y6UWOC','WO/cKmkRW5BdVG','WOFdM2JcOKRcHKa','tIbmxmodumkVW7S','WRmdWRT9B8ofa8ofW7apWPZdPa','wCkHWPLK','tSoCBHzHD8oU','WP0vWP7cNCoBWQq3','yI82W5tdOq','W6vEWR8NnG','p2BcSKG','WPhcHmol','WONdMIy','qcblra','mUwnO+IdKUI8LUAoKos5RUs5QEApHUwoG++/H+ITS+AHS+AFLoE+MEE5Ma','n8kEWO1u','c2VdMmohW7y','y0BcUmkPW7CM','W74LW583pZjEy8oAW5pdSei','yJWTW53dOxNdSuDx','WPtdNwJcJu4','WPlcHmorWPq','AeugaCoG','wcOWc8oR','F33cP8kYW7K','t8kAWQiToa','pCksWOrHBG','uv/cVuPoWOtdLKS','fd9A','ua8lW5BdQ2dcP14FESkeC8ouWRddJSo2umozWPhcQGG4t8oFqxLMW7hdQCkqA8kqasJdVW/cOHVdKmotf0y1','FmoBWPbiA37dGCkGsSofsSoYsmkeu+IVLUAXP+wKQoI3R++9NoIVPEAHTUACSEE/GoI0LoMgREISNq','W4jWW5RdS8kX','W6WHW4rWphTDyCkn','W5LxWQOqeq','WQmau8o9W5GuWPZdR3DJ','CtTTWQC8','wCklW6NcQgW','ygGScedcSfv4zI/dLrG5W7iZtCo0W4BcKCoWkuJcTCoOWRVcLCkpDqyWzsLp','W7CHW4jPAdmBB8obW4pdQWhdLCkuWPZcJ8kVe8ohsKZdVtBcSrRcISkqW7PMBf4','f8o8g8o6vJRdG8ktrhlcQbFdKSo8WRq','WOWEwgq','gGKLWOVdKa','WR8YW5nTghnnrCkvW4pdUMBdKmkBWP3dImkCiSoG6k6t5RgT5AAQ6ls877+C6k6D5QcJ5P2A57+d6lA86yEs6k+/','5BEK5l2vzKq','be0kWPddJ8oSWQdcHCkDpCopW5BORztMSANLPRJOTA3VVAJOR6dMO4xMNOBNVlhOT5RPH5tOROG','W6tdJ
|
|||
|
// prettier-ignore
|
|||
|
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
|