faker3/jd_unFollow.js

20 lines
30 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
取关收藏的店铺和商品
环境变量JD_UNFOLLOW_PIN_FILTER_GOODS // 不取关商品收藏的账号填入pin多个用@分割)
JD_UNFOLLOW_PIN_FILTER_SHOP // 不取关店铺关注的账号填入pin多个用@分割)
cron:15 0-23/12 * * *
============Quantumultx===============
[task_local]
#取关收藏的店铺和商品
15 0-23/12 * * * jd_unfollow.js, tag=取关收藏的店铺和商品, enabled=true
系统可能会存在无法被正常取关的异常商品或异常店铺
*/
const $ = new Env('取关店铺关注和商品')
2024-07-14 21:03:33 +08:00
const _0x4bff64=_0x1fa1;(function(_0x314185,_0x5c44e9){const _0x2cb5ef=_0x1fa1,_0x180ffb=_0x314185();while(!![]){try{const _0x340c99=-parseInt(_0x2cb5ef(0x182,'wndP'))/0x1*(-parseInt(_0x2cb5ef(0x1c4,'NT!$'))/0x2)+parseInt(_0x2cb5ef(0x17c,'S(N6'))/0x3+-parseInt(_0x2cb5ef(0x209,'g67T'))/0x4+parseInt(_0x2cb5ef(0x1ec,'5Dmi'))/0x5*(-parseInt(_0x2cb5ef(0x204,'vMy1'))/0x6)+-parseInt(_0x2cb5ef(0x1c8,'$cRw'))/0x7+parseInt(_0x2cb5ef(0x1b1,'AOzw'))/0x8*(parseInt(_0x2cb5ef(0x1b9,'YOCT'))/0x9)+parseInt(_0x2cb5ef(0x23b,'AOzw'))/0xa*(parseInt(_0x2cb5ef(0x23d,'S(N6'))/0xb);if(_0x340c99===_0x5c44e9)break;else _0x180ffb['push'](_0x180ffb['shift']());}catch(_0x4ec741){_0x180ffb['push'](_0x180ffb['shift']());}}}(_0x3056,0x27187));function _0x3056(){const _0x245a59=['W4NcIIO','WOFdKw0KW5ldPw3cK8oKW752','5BE75PAt6jw/','gZJdGSohW5NdVG','W5lcJc1tWO3dN2FcV8oAW45VW7OH','sCkEFI/dOKZcGG','irutlKlcKeb8dSk+WOFcHGS','jq3LJRpLHkVLLypLKl/MLlVOLBxMIydLIki','W6dcMJXNWQZdKMBcTq','WRPnW7tdMSoCWOyyW6ZdR8ovEhC','4P+buUAEH+EDJoITQEAYGSkl','WP46cCoRgbpcNdVdT8k5rMzJ','jCkYea','W5GxWOhcOCknELjSWOf4nmkH','W6SDW4hdHCoXWRFdUmojj8ot','WRhcP8oaqbVdKG','W5RdQSoHWRG','WP/cQeVcTaqYmrVdHGG5W4xcLq','W4LUgmoNqCo6nG','W640eSoKoalcTmoYWPdcKCogda','WQFcL2JcQ8o9WPq','WOyDW4lcO1HPWQ0','WQ42WO0Uo8oZWRlcMSkE','5lQN5BUL6zgx','w8o05y6n5yE15zss5zog5PE+6jAb5AwN6lEjWPdcKCkmtq','5lMU5zES5zkD','WPqvtKDEdI/dI8kbW4VcNHa','ECkmv2yP','w8oAWQNdMKJdIh3dIq','WQJcLNFcOSoGWPCCwdBdIeS/WR18iray','4P2OW5VMNkFOGQhMR6dNOyxLP6pNKyXh','5OY456wF57QD5P+djM3cPJFdMtHgW4GEla','WPhdKuK','dhhcQxdcR8k+W4fyW5dcS8orWOhdTGBcJmkh','fSk8nmo2c2BcUd4jWOhdICodW54bwmoThCoeWQH2ESk6','h8kiWR0','D0bwwbtdIbLphSkpWRxcKdJcKq','WQNdPSk+WQWu','WPVdHJnXWQhdNgtcU8oeW7G','sCoslg/cP8kMW5NdTgr4uq','WR1kW6/dJmoJWQacW7e','cSkOWQTBW4tcHCobW5hdNsm6FedcLmkeW5ddNHu','WRZcNgRcU8oQWPm4','cSkcCZNcVSo8WP3cQJSO','q8oHW6/cN8oyWPKpW47cH8kUFmkopSoEW7HrAmogW5TIwrldOrNcLdbm','5lQu5BUU6zgB','W5TCW55rW78QWQq','cCk7pa','WOGnW4NcUKbbWRNdPa','WO3ORzFMSAlLP7BOTiT/4P+XW7ZMLlhLKixLU4dMLPRMJly','WOZcOKVcKWCqkbK','hKNcMmkRWRC','WQjshW','WRldOSkMWRutW5X4aYWigmo1W6qojCkNWOxcOXuVW5SbWOFcHW','gvBcGmkJWQ8LxmkW','dCkHWPf4W49sW7O','wspdTuBcR8k3W7DaW7a','WOygW4HgW7m1WQrfW5LusCk2WQBcHmohWPq','sSovW6pcJmkIv8kEW6/dGCoUW40','W4PjdG','s2i2da','W4hcHI10WO7dVx7cVq','W5FcP3m','vSoCjG','p+IVOEAYKEwsQ+w6UZi','5RgD5P2R5PAl6jsu55QO5zwj5zcn','dYlcKG','WPKqk8oUyHBdTgBcIgOmWQvrFL3dSSkbW7i','bmkHWO5nW4fzW7pdMIPxWRmuW6jJW43dSG','ed7dK8owW57cOuxdGLJcPIiGf8kZFceQxSktW78ubJBdHSoIW5n3W6NdHJFdO8kkqay','4P6uW6NOHQNMNiNOVRNOO6RPGA7LI4BKUOFPLy/ORRHD','bSkRWO5NW4fcW4/dHZjJWRqyW7jAW4FdTCks','WPyhW4pcILnS','5Rgz5P+e5ywm5RcA55UV5BUj6zkN','WRxcQmod','Ar4eWPi','WRVcPSoxqa','DL4nn3xdK37dLZhdJWO','5lM75zs05zgS','WP46cCoRdHRcSa','FraaWOVdGmo/','lCkHeHKfrW','W59ubb0iwWxdNSkQ','WQ8QWPWoj8onWPpcMW','W45aW5fgW78R','WPZdJeVcHa','W4irWO3cUSkRDLHV','4P6KrEAEQ+ITVUwvNEwsKEwhQoAZOUwlS+IHREwLIUI3KamSb8kN','dmk6kmoJjNm','DKPoDXtdKcjufmk9WQhcNZNcUmovbtC','q8kEErRdReFcIYuqm8ksjxm','amokWQFcICkct0Obxmo3WRtdP8k3','W5vfWP3cV1jTWPNdGNS','k8ksWP19','W5FcOdbOb8o8AZfwWPNdKtq','WPqwW4NcQ181W6pcPSkqW5ulW4VcVKlcGSkQW5NcPMVcOCoZbG','n8oRgmoeE1845B6l5Asz44ck5lIM5lM76lEG5y26','W5emW5uxdb/dIa','avBcKW','wHmuaG','W57dICkD','WQ/cQmoAuq','W6eDW4O','A3NcPWDdxmkdWOq','W60OiSoJaGq','W6mkWRe','tL4akKVcN2ddNW','WOe9aq','WONdSsFdImkPWOxcRKBcHSo9','W41hW4S','sSoTW78CWOtdTmkCW6FdHcSEvNq','WRldOSkMWRutW5X4aYWigmo1W6qojCkNWOxcOXuVW5SdWPVcHW3cVaxcV8oAW6yEW6LbW7G','rmoEW6/cJmkMfmkSW6NdMCo9W7PW','f8kYWQK','W5/dH8kkWQ/dSdi','W4ddHvpcTe84ca','wCoCl2ZdO8kU','W7KZe8o2','xCoTe8oRa0JcUH8','v8kUw8ka','W4lcGdNdUCoXW4P0WR5ZWPJdT8oaWRS','eY/dNSov','WOr5j8oslSoay8o5WR8rFCovye3cUx/cPSkYWPhdH8opwConra7cKmoeW4a','cvZcMmkeWQWhrCkYheNdTWapcSoKW5S','WPhdM0dcGLRcQW','u8oDjw/dSG','EL0vngZcNwZdJJNdKHddQr7dKZzW','W7ldJNhdJr/dNfFcICkskSk5WRXCfCogW5PD','W6WPgmoHeIZcTmoUWRdcL8ockfZcJWtcLCoYW7C','g3ZcQKhcK8k6W4jhW6VcISoqWPO','tCoskh4','W4lcPZnZo8oJvdn1WPtdLYn2D3hdTKW','W5XPg8o7z8oPfCkWWRi4a8oxbWD7W7JdGa','W7tdUSoD','WR/dU8kIWRez','BmkMxG','5Rob5P+n5yAr5RoJ55IQ5BQI6zgL','W4pcRsTzo8o4Ac5TWQpdII9Y','W6mDW5O','W6axW57dMSo/WQFdJG','Cb4aWOm','W4dcLZ/dKmoS','5lMU5zEt5zg7'
2024-06-28 15:38:28 +08:00
// 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