mirror of https://github.com/KingRan/KR.git
24 lines
96 KiB
JavaScript
24 lines
96 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 I1II=iii1II;function iii1II(_0x57f4c2,_0x4ed697){const _0x177b88=Iii11l();return iii1II=function(_0x155304,_0x17fdc9){_0x155304=_0x155304-0xfc;let _0x5ecb16=_0x177b88[_0x155304];if(iii1II['pyJBur']===undefined){var _0x2973a8=function(_0x1b8ecf){const _0x562da2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x117f27='',_0x56539a='';for(let _0x4767b6=0x0,_0x216cf5,_0x5c11ae,_0x2c4ee2=0x0;_0x5c11ae=_0x1b8ecf['charAt'](_0x2c4ee2++);~_0x5c11ae&&(_0x216cf5=_0x4767b6%0x4?_0x216cf5*0x40+_0x5c11ae:_0x5c11ae,_0x4767b6++%0x4)?_0x117f27+=String['fromCharCode'](0xff&_0x216cf5>>(-0x2*_0x4767b6&0x6)):0x0){_0x5c11ae=_0x562da2['indexOf'](_0x5c11ae);}for(let _0x3f1f96=0x0,_0xbbf1a5=_0x117f27['length'];_0x3f1f96<_0xbbf1a5;_0x3f1f96++){_0x56539a+='%'+('00'+_0x117f27['charCodeAt'](_0x3f1f96)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56539a);};const _0x8f2d82=function(_0x2d96ce,_0x471eb5){let _0x383da3=[],_0xdbf586=0x0,_0x54197d,_0x162835='';_0x2d96ce=_0x2973a8(_0x2d96ce);let _0x2ef28d;for(_0x2ef28d=0x0;_0x2ef28d<0x100;_0x2ef28d++){_0x383da3[_0x2ef28d]=_0x2ef28d;}for(_0x2ef28d=0x0;_0x2ef28d<0x100;_0x2ef28d++){_0xdbf586=(_0xdbf586+_0x383da3[_0x2ef28d]+_0x471eb5['charCodeAt'](_0x2ef28d%_0x471eb5['length']))%0x100,_0x54197d=_0x383da3[_0x2ef28d],_0x383da3[_0x2ef28d]=_0x383da3[_0xdbf586],_0x383da3[_0xdbf586]=_0x54197d;}_0x2ef28d=0x0,_0xdbf586=0x0;for(let _0x1104f4=0x0;_0x1104f4<_0x2d96ce['length'];_0x1104f4++){_0x2ef28d=(_0x2ef28d+0x1)%0x100,_0xdbf586=(_0xdbf586+_0x383da3[_0x2ef28d])%0x100,_0x54197d=_0x383da3[_0x2ef28d],_0x383da3[_0x2ef28d]=_0x383da3[_0xdbf586],_0x383da3[_0xdbf586]=_0x54197d,_0x162835+=String['fromCharCode'](_0x2d96ce['charCodeAt'](_0x1104f4)^_0x383da3[(_0x383da3[_0x2ef28d]+_0x383da3[_0xdbf586])%0x100]);}return _0x162835;};iii1II['Wyqpgz']=_0x8f2d82,_0x57f4c2=arguments,iii1II['pyJBur']=!![];}const _0x28bc74=_0x177b88[0x0],_0x5abbd7=_0x155304+_0x28bc74,_0x5ad0ef=_0x57f4c2[_0x5abbd7];return!_0x5ad0ef?(iii1II['udJfUX']===undefined&&(iii1II['udJfUX']=!![]),_0x5ecb16=iii1II['Wyqpgz'](_0x5ecb16,_0x17fdc9),_0x57f4c2[_0x5abbd7]=_0x5ecb16):_0x5ecb16=_0x5ad0ef,_0x5ecb16;},iii1II(_0x57f4c2,_0x4ed697);}(function(liIl1l,IIiII1,lIi1I,Ii1111,Ill1li,Ililii,I111ll){return liIl1l=liIl1l>>0x6,Ililii='hs',I111ll='hs',function(I1liIi,I1ii1i,I1ii1l,iIii1,Il1il1){const liII11=iii1II;iIii1='tfi',Ililii=iIii1+Ililii,Il1il1='up',I111ll+=Il1il1,Ililii=I1ii1l(Ililii),I111ll=I1ii1l(I111ll),I1ii1l=0x0;const Ililil=I1liIi();while(!![]&&--Ii1111+I1ii1i){try{iIii1=-parseInt(liII11(0x293,'ApdP'))/0x1+-parseInt(liII11(0x491,'9iew'))/0x2+parseInt(liII11(0x440,'Nbca'))/0x3*(-parseInt(liII11(0x170,'SeBX'))/0x4)+-parseInt(liII11(0x34d,'bpUD'))/0x5*(parseInt(liII11(0x44d,'f2@l'))/0x6)+-parseInt(liII11(0x4eb,'xPqe'))/0x7*(parseInt(liII11(0x16e,'5t3h'))/0x8)+parseInt(liII11(0x498,'Nbca'))/0x9*(parseInt(liII11(0x228,'ApdP'))/0xa)+parseInt(liII11(0x4ea,'Ixa)'))/0xb;}catch(Ill1ll){iIii1=I1ii1l;}finally{Il1il1=Ililil[Ililii]();if(liIl1l<=Ii1111)I1ii1l?Ill1li?iIii1=Il1il1:Ill1li=Il1il1:I1ii1l=Il1il1;else{if(I1ii1l==Ill1li['replace'](/[CKEkfUrTRHWNMuwxVnb=]/g,'')){if(iIii1===I1ii1i){Ililil['un'+Ililii](Il1il1);break;}Ililil[I111ll](Il1il1);}}}}}(lIi1I,IIiII1,function(I1liIl,I111li,l11li,iIlli,l11ll,Ii1ll,iIlll){return I111li='\x73\x70\x6c\x69\x74',I1liIl=arguments[0x0],I1liIl=I1liIl[I111li](''),l11li='\x72\x65\x76\x65\x72\x73\x65',I1liIl=I1liIl[l11li]('\x76'),iIlli='\x6a\x6f\x69\x6e',(0x13951b,I1liIl[iIlli](''));});}(0x3040,0x8bb72,Iii11l,0xc3),Iii11l)&&(version_=Iii11l);const iII1I1=$[I1II(0x40d,'wpNt')]()?require(I1II(0x173,'5t3h')):'',iiiIIi=$[I1II(0x40d,'wpNt')]()?require(I1II(0x48b,'yvt@')):'',lIi1iI=require(I1II(0x302,'S@5E')),l1IIll=require(I1II(0x48f,'tQ7L'));let iiiIIl=[],lIIi11='',illiii=![],IIIll1=0x0,illiil;if($[I1II(0x215,'m(I3')]()){Object[I1II(0x1db,'9aiA')](iII1I1)[I1II(0x435,'lYZK')](IiIli=>{const iiii1=I1II;iiiIIl[iiii1(0x237,'5FTp')](iII1I1[IiIli]);});if(process['env'][I1II(0x4a1,'Ixa)')]&&process[I1II(0x28d,'vpA^')][I1II(0x339,'wpNt')]==='false')console[I1II(0x231,'9aiA')]=(
|
|||
|
// 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
|