first commit
This commit is contained in:
commit
9399a88d39
347 files changed
+167716
No files matched your search
@@ -0,0 +1,30 @@
|
||||
(async () => {
|
||||
const cap = [];
|
||||
const XO = XMLHttpRequest.prototype.open, XS = XMLHttpRequest.prototype.send, XH = XMLHttpRequest.prototype.setRequestHeader;
|
||||
XMLHttpRequest.prototype.open = function (m, u, ...a) { this.__u = u; this.__m = m; this.__h = {}; return XO.call(this, m, u, ...a); };
|
||||
XMLHttpRequest.prototype.setRequestHeader = function (k, v) { if (this.__h) this.__h[k] = v; return XH.call(this, k, v); };
|
||||
XMLHttpRequest.prototype.send = function (b) {
|
||||
if (/item\.list/.test(this.__u || '')) cap.push({ u: this.__u, body: String(b).slice(0, 800), headers: this.__h });
|
||||
return XS.call(this, b);
|
||||
};
|
||||
const F = window.fetch;
|
||||
window.fetch = function (input, init) {
|
||||
const u = typeof input === 'string' ? input : (input && input.url);
|
||||
if (/item\.list/.test(u || '')) cap.push({ via: 'fetch', u, body: init && String(init.body).slice(0, 800), headers: init && init.headers ? JSON.parse(JSON.stringify(init.headers)) : null });
|
||||
return F.apply(this, arguments);
|
||||
};
|
||||
|
||||
const g = document.querySelectorAll('.ant-radio-group')[0];
|
||||
const t = Array.from(g.querySelectorAll('.ant-radio-wrapper, .ant-radio-button-wrapper')).find(o => o.innerText.trim() === '近7天');
|
||||
t.click();
|
||||
await new Promise(r => setTimeout(r, 5000));
|
||||
|
||||
XMLHttpRequest.prototype.open = XO; XMLHttpRequest.prototype.send = XS; XMLHttpRequest.prototype.setRequestHeader = XH;
|
||||
window.fetch = F;
|
||||
|
||||
return {
|
||||
captured: cap,
|
||||
token: (document.cookie.match(/_m_h5_tk=([^;]*)/) || [])[1] || null,
|
||||
checkedNow: (() => { const gg = document.querySelectorAll('.ant-radio-group')[0]; const c = Array.from(gg.querySelectorAll('.ant-radio-wrapper, .ant-radio-button-wrapper')).find(o => /checked/.test(o.className) || o.querySelector('.ant-radio-checked')); return c ? c.innerText.trim() : null; })(),
|
||||
};
|
||||
})()
|
||||
Reference in new issue
Block a user