jdpro/jd_delLjq.js

6 lines
82 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
2 2 29 2 * jd_delLjq.js
*/
const $ = new Env('批量删垃圾券');
2024-09-29 03:12:01 +00:00
function xRN0ho(){}var SQrFAF=Object['defineProperty'],xeYOre,gc5a0k,pzELbB,y5jfljd,fRumuF9,mDAVKn,sXA16Gi,MU58iCR,xIO6v2,xRJXWb,rPZx86,rUgJ8X,hxEgrc,HEh7MT,L1kQqrA;function pwe_NIe(xRN0ho){return xeYOre[xRN0ho<0x30?xRN0ho-0x4c:xRN0ho>0x127?xRN0ho+0x44:xRN0ho<0x127?xRN0ho-0x31:xRN0ho+0x22]}xeYOre=kB7SI0();function ur5tUNL(xRN0ho,SQrFAF){return gc5a0k(xRN0ho,pwe_NIe(0x4e),{value:SQrFAF,configurable:pwe_NIe(0xd8)})}xRN0ho(gc5a0k=Object.defineProperty,pzELbB=ur5tUNL(NdspYd2((...SQrFAF)=>{var gc5a0k=NdspYd2(SQrFAF=>{return xeYOre[SQrFAF<0x21?SQrFAF-0x56:SQrFAF>0x118?SQrFAF+0x26:SQrFAF>0x118?SQrFAF-0x5e:SQrFAF-0x22]},0x1);xRN0ho(SQrFAF.length=0x2,SQrFAF[pwe_NIe(0x31)]=SQrFAF[gc5a0k(0x23)]);return SQrFAF[pwe_NIe(0x31)](SQrFAF[0x0]())}),pwe_NIe(0x45))(MW4z5uh,uZJCg_q));var jQ05CSm=[],ne0oQo=[HGHVtrg(pwe_NIe(0x44)),HGHVtrg(pwe_NIe(0x32)),HGHVtrg(0x2),HGHVtrg(pwe_NIe(0x42)),HGHVtrg(0x4),HGHVtrg(0x5),HGHVtrg(pwe_NIe(0x4b)),HGHVtrg(pwe_NIe(0x4c)),HGHVtrg(0x8),HGHVtrg(0x9),'Jp6=F2=$j|?xi.',HGHVtrg(pwe_NIe(0xa1)),HGHVtrg(0xb),HGHVtrg(0xc),HGHVtrg(0xd),HGHVtrg(pwe_NIe(0x34)),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~ei)1=a&Lw(qb5NO3G~O[{X(u)df99o{qVQ:"Vjz4]FL9u=uiaQ:"#@91L)d(,ZYXhgZag#zjHMdMm)2MbMA+T@0;K0g>7rW_u#S8RX?*3mffOujC3JTh(iFDX+zrqxh0ffOujC|CN=IdeQlmgs%7]F&3sPzu8eyh+p)E,mRt.8ri9Q{"@Xr_C)Yt}j!3zMYmDzO<%B)^b)f.dQ}mDzRng(eQq*[rofx)cpfu~;|C#M>k;OR,Hzzx^<>.ByuCzKw[:(G8oKulR{RMis"[t}r7rVe*7=>kf;"[g#i',HGHVtrg(pwe_NIe(0x6e)),HGHVtrg(0x64),HGHVtrg(0x65),'c2giME@8Lv@NJx$cP"e4_O9$</^JP@@QG6*L<y^pCM:v;#~/YM!+|7&pa3cVQQa7wc:vo6o,P%|rSJ#',HGHVtrg(0x66),pwe_NIe(0x3a),HGHVtrg(pwe_NIe(0x35)),HGHVtrg(0x67),HGHVtrg(0x68),'Q]|;!Wl$}',HGHVtrg(0x69),HGHVtrg(0x6a),HGHVtrg(pwe_NIe(0x36)),HGHVtrg(pwe_NIe(0x3b)),HGHVtrg(pwe_NIe(0xc1)),HGHVtrg(0x6e),HGHVtrg(0x6f),HGHVtrg(pwe_NIe(0xfd)),HGHVtrg(0x71),HGHVtrg(pwe_NIe(0x36)),HGHVtrg(0x72),HGHVtrg(0x73),HGHVtrg(pwe_NIe(0x36)),HGHVtrg(0x74),HGHVtrg(0x53),HGHVtr
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