1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 15:40:28 +01:00

Update deobfuscation

This commit is contained in:
GitHub Action 2025-04-15 22:06:10 +00:00
parent 670e002238
commit f043087d7b
2 changed files with 104 additions and 122 deletions

View file

@ -3,109 +3,98 @@
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, t, r) => { 227900: (n, t, r) => {
r.r(t), r.d(t, { r.r(t), r.d(t, {
default: () => c default: () => o
}); });
r(136728), r(875640); r(136728), r(875640);
const c = () => { const o = () => {
const [fo, io] = [document, window], const [_W, nc] = [document, window],
[ko, so, ao, Ro, mo, Co, Oo, So, Qo, lo, po, Go, ho] = [io["Number"], io["TextEncoder"], io["Uint8Array"], n => fo["querySelectorAll"](n), io["Date"], io["Uint32Array"], io["crypto"]["subtle"], io["Array"]["from"], io["Math"], io["RTCPeerConnection"], io["Promise"], io["Function"], io["getComputedStyle"]]; [tc, rc, Wc, cc, oc, uc, ec, fc, ic, dc, kc, sc, ac] = [nc["Number"], nc["TextEncoder"], nc["Uint8Array"], n => _W["querySelectorAll"](n), nc["Date"], nc["Uint32Array"], nc["crypto"]["subtle"], nc["Array"]["from"], nc["Math"], nc["RTCPeerConnection"], nc["Promise"], nc["Function"], nc["getComputedStyle"]];
let qo; let Cc;
const Io = n => btoa(So(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), const Rc = n => new Wc(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))),
Jo = () => { Sc = n => btoa(fc(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
return n = xo(Ro("[name^=tw]")[0], "content"), new ao(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); mc = () => Rc(Pc(cc("[name^=tw]")[0], "content")),
var n; Qc = (n, t) => Cc = Cc || Pc(pc(cc(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](tc)),
}, Pc = (n, t) => n && n["getAttribute"](t) || "",
No = (n, t) => qo = qo || xo(Lo(Ro(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](ko)), Gc = n => typeof n == "string" ? new rc()["encode"](n) : n,
xo = (n, t) => n && n["getAttribute"](t) || "", bc = n => ec["digest"]("sha-256", Gc(n)),
Fo = n => typeof n == "string" ? new so()["encode"](n) : n, hc = n => (n < 16 ? "0" : "") + n["toString"](16),
wo = n => Oo["digest"]("sha-256", Fo(n)), pc = n => fc(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
Ko = n => (n < 16 ? "0" : "") + n["toString"](16), lc = () => {
Lo = n => So(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
Eo = () => {
const t = {};
t["zgDoE"] = "div";
const c = t;
{ {
const t = fo["createElement"](c["zgDoE"]); const n = _W["createElement"]("div");
return fo["body"]["append"](t), [t, () => t([t])]; return _W["body"]["append"](n), [n, () => pc([n])];
} }
{ {
const t = fo["createElement"]("div"); const W = new bc(),
return fo["body"]["append"](t), [t, () => Lo([t])]; f = qc()["toString"](36);
dc = W["createDataChannel"](f), W["createOffer"]()["then"](i => {
try {
const k = i["sdp"] || f;
rc = ec(ac([k[Vc[5] % 8] || "4", k[Xc[8] % 8]])), W["close"]();
} catch {}
var b, h, p, l;
})["catch"](Sc);
} }
}, },
[go, Ho, Uo, bo, To] = [n => Qo["round"](n), n => Qo["floor"](n), () => Qo["random"](), n => n["slice"](0, 16), () => 0], [Vc, gc, vc, Fc, qc] = [n => ic["round"](n), n => ic["floor"](n), () => ic["random"](), n => n["slice"](0, 16), () => 0],
[Zo, yo, Ao] = [3, 1682924400, 2 ** (4 * 3)], [Nc, wc, Hc] = [3, 1682924400, 2 ** (4 * 3)],
Do = (n, t, r) => t ? n ^ r[0] : n, Jc = (n, t, r) => t ? n ^ r[0] : n,
Yo = (n, t, r) => { Bc = (n, t, r) => {
{ {
if (!n["animate"]) return; if (!nc["animate"]) return;
const W = n["animate"](jo(t), Ao); const n = lc["animate"](bc(qc), dc);
W["pause"](), W["currentTime"] = go(r / 10) * 10; n["pause"](), n["currentTime"] = Pc(_W / 10) * 10;
} }
}, },
Xo = (n, t, r, W) => { Kc = (n, t, r, W) => {
{ {
const o = n * (r - t) / 255 + t; const c = n * (r - t) / 255 + t;
return W ? Ho(o) : o["toFixed"](2); return W ? gc(c) : c["toFixed"](2);
}
{
const n = qo["sdp"] || wo;
r = jo(Vo([n[So[5] % 8] || "4", n[po[8] % 8]])), W["close"]();
} }
}, },
jo = n => ({ Tc = n => ({
color: ["#" + Ko(n[0]) + Ko(n[1]) + Ko(n[2]), "#" + Ko(n[3]) + Ko(n[4]) + Ko(n[5])], color: ["#" + hc(n[0]) + hc(n[1]) + hc(n[2]), "#" + hc(n[3]) + hc(n[4]) + hc(n[5])],
transform: ["rotate(0deg)", "rotate(" + Xo(n[6], 60, 360, !0) + "deg)"], transform: ["rotate(0deg)", "rotate(" + Kc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + So(n["slice"](7))["map"]((n, t) => Xo(n, t % 2 ? -1 : 0, 1))["join"]() + ")" easing: "cubic-bezier(" + fc(n["slice"](7))["map"]((n, t) => Kc(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let Vo, let Yc,
Bo, Mc,
Mo = []; Zc = [];
const zo = n => { const Xc = n => {
if (!Vo) { if (!Yc) {
const [t, M] = [n[23] % 16, n[38] % 16 * (n[11] % 16) * (n[9] % 16)], const [t, r] = [n[25] % 16, n[32] % 16 * (n[37] % 16) * (n[34] % 16)],
z = No(".r-4d8lxc", n); c = Qc(".r-nki20", n);
new po(() => { new kc(() => {
{ {
const n = Oo * (To - qo) / 255 + wo; const n = oc["createElement"]("div");
return M ? jo(n) : n["toFixed"](2); return rc["body"]["append"](n), [n, () => n([n])];
} }
{ {
const w = new lo(), const o = new dc(),
K = Uo()["toString"](36); u = vc()["toString"](36);
Bo = w["createDataChannel"](K), w["createOffer"]()["then"](L => { Mc = o["createDataChannel"](u), o["createOffer"]()["then"](e => {
try { try {
{ const n = Zc["sdp"] || Sc;
const O = new wo(), t = i(n([n[Bc[5] % 8] || "4", n[Rc[8] % 8]])), k["close"]();
S = M()["toString"](36);
jo = O["createDataChannel"](S), O["createOffer"]()["then"](t => {
try {
const e = t["sdp"] || S;
Ho = ho(Lo([e[Ao[5] % 8] || "4", e[yo[8] % 8]])), O["close"]();
} catch {}
var c, u;
})["catch"](xo);
}
} catch {} } catch {}
})["catch"](To); })["catch"](qc);
} }
})["catch"](To); })["catch"](qc);
const [$, _] = Eo(); const [i, d] = lc();
Yo($, z[t], M); Bc(i, c[t], r);
const nn = ho($); const k = ac(i);
Vo = So(("" + nn["color"] + nn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => ko(ko(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), _(); Yc = fc(("" + k["color"] + k["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => tc(tc(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), xGxqCJZiWHUUPwjIFtPn[p(1e3, 0, ")Op]")](d);
} }
return Vo; return Yc;
}; };
return async (n, t) => { return async (n, t) => {
const f = Ho((mo["now"]() - yo * 1e3) / 1e3), const r = gc((oc["now"]() - wc * 1e3) / 1e3),
d = new ao(new Co([f])["buffer"]), W = new Wc(new uc([r])["buffer"]),
i = Jo(), c = mc(),
k = zo(i); o = Xc(c);
return Io(new ao([Uo() * 256]["concat"](So(i), So(d), bo(So(new ao(await wo([t, n, f]["join"]("!") + "obfiowerehiring" + k)))["concat"](Mo)), [Zo]))["map"](Do)); return Sc(new Wc([vc() * 256]["concat"](fc(c), fc(W), Fc(fc(new Wc(await bc([t, n, r]["join"]("!") + "obfiowerehiring" + o)))["concat"](Zc)), [Nc]))["map"](Jc));
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.b0cd309a.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d6070e4a.js.map

View file

@ -3,64 +3,57 @@
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, t, r) => { 227900: (n, t, r) => {
r.r(t), r.d(t, { r.r(t), r.d(t, {
default: () => c default: () => o
}); });
r(136728), r(875640); r(136728), r(875640);
const c = () => { const o = () => {
let qo; let Cc;
const Io = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const Rc = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const Jo = () => { const Sc = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
return n = xo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); const mc = () => Rc(Pc((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
}; const Qc = (n, t) => Cc = Cc || Pc(pc((n => document.querySelectorAll(n))(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number));
const No = (n, t) => qo = qo || xo(Lo((n => document.querySelectorAll(n))(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number)); const Pc = (n, t) => n && n["getAttribute"](t) || "";
const xo = (n, t) => n && n["getAttribute"](t) || ""; const Gc = n => typeof n == "string" ? new rc()["encode"](n) : n;
const Fo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const bc = n => crypto.subtle["digest"]("sha-256", Gc(n));
const wo = n => crypto.subtle["digest"]("sha-256", Fo(n)); const pc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Ko = n => (n < 16 ? "0" : "") + n["toString"](16); const lc = () => {
const Lo = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Ho = n => Math.floor(n);
const Do = (n, t, r) => t ? n ^ r[0] : n;
const Yo = (n, t, r) => {
{ {
if (!n["animate"]) return; const n = document.createElement("div");
const W = n["animate"](jo(t), 4096); return document.body["append"](n), [n, () => pc([n])];
W["pause"](), W["currentTime"] = (n => Math.round(n))(r / 10) * 10;
} }
}; };
const Xo = (n, t, r, W) => { const Jc = (n, t, r) => t ? n ^ r[0] : n;
const Bc = (n, t, r) => {
{ {
const o = n * (r - t) / 255 + t; if (!animate) return;
return W ? Ho(o) : o["toFixed"](2); const n = lc["animate"](bc(() => 0), dc);
n["pause"](), n["currentTime"] = Pc(document / 10) * 10;
} }
}; };
const jo = n => ({ let Yc;
color: ["#" + Ko(n[0]) + Ko(n[1]) + Ko(n[2]), "#" + Ko(n[3]) + Ko(n[4]) + Ko(n[5])], let Zc = [];
transform: ["rotate(0deg)", "rotate(" + Xo(n[6], 60, 360, !0) + "deg)"], const Xc = n => {
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => Xo(n, t % 2 ? -1 : 0, 1))["join"]() + ")" if (!Yc) {
}); const t = n[25] % 16;
let Vo; const c = Qc(".r-nki20", n);
let Mo = [];
const zo = n => {
if (!Vo) {
const z = No(".r-4d8lxc", n);
new Promise(() => { new Promise(() => {
{ {
const n = crypto.subtle * ((() => 0) - qo) / 255 + wo; const n = Date["createElement"]("div");
return n[38] % 16 * (n[11] % 16) * (n[9] % 16) ? jo(n) : n["toFixed"](2); return rc["body"]["append"](n), [n, () => n([n])];
} }
})["catch"](() => 0); })["catch"](() => 0);
Yo($, z[n[23] % 16], n[38] % 16 * (n[11] % 16) * (n[9] % 16)); Bc(i, c[t], n[32] % 16 * (n[37] % 16) * (n[34] % 16));
const nn = getComputedStyle($); const k = getComputedStyle(i);
Vo = Array.from(("" + nn["color"] + nn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), _(); Yc = Array.from(("" + k["color"] + k["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), xGxqCJZiWHUUPwjIFtPn[p(1e3, 0, ")Op]")](d);
} }
return Vo; return Yc;
}; };
return async (n, t) => { return async (n, t) => {
const f = Ho((Date["now"]() - 1682924400000) / 1e3); const r = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const d = new Uint8Array(new Uint32Array([f])["buffer"]); const W = new Uint8Array(new Uint32Array([r])["buffer"]);
const i = Jo(); const c = mc();
const k = zo(i); const o = Xc(c);
return Io(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(i), Array.from(d), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await wo([t, n, f]["join"]("!") + "obfiowerehiring" + k)))["concat"](Mo)), [3]))["map"](Do)); return Sc(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(c), Array.from(W), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await bc([t, n, r]["join"]("!") + "obfiowerehiring" + o)))["concat"](Zc)), [3]))["map"](Jc));
}; };
}; };
} }