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

Update deobfuscation

This commit is contained in:
GitHub Action 2025-03-18 22:05:39 +00:00
parent 6706e1381c
commit 501e545046
2 changed files with 126 additions and 136 deletions

View file

@ -1,96 +1,102 @@
"use strict"; "use strict";
(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, W) => { 227900: (n, W, t) => {
W.r(t), W.d(t, { t.r(W), t.d(W, {
default: () => u default: () => o
}); });
W(136728), W(875640); t(136728), t(875640);
const u = () => { const o = () => {
const [Co, Oo] = [document, window], const [po, To] = [document, window],
[mo, So, Ro, ko, so, Po, vo, Jo, No, qo, Go, Qo, wo] = [Oo["Number"], Oo["TextEncoder"], Oo["Uint8Array"], n => Co["querySelectorAll"](n), Oo["Date"], Oo["Uint32Array"], Oo["crypto"]["subtle"], Oo["Array"]["from"], Oo["Math"], Oo["RTCPeerConnection"], Oo["Promise"], Oo["Function"], Oo["getComputedStyle"]]; [bo, Jo, lo, zo, Ao, Ho, Lo, Fo, Vo, Eo, Bo, Ko, Uo] = [To["Number"], To["TextEncoder"], To["Uint8Array"], n => po["querySelectorAll"](n), To["Date"], To["Uint32Array"], To["crypto"]["subtle"], To["Array"]["from"], To["Math"], To["RTCPeerConnection"], To["Promise"], To["Function"], To["getComputedStyle"]];
let xo; let Zo;
const lo = n => btoa(Jo(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), const $o = n => btoa(Fo(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
Lo = () => { Yo = () => {
return n = Mo(ko("[name^=tw]")[0], "content"), new Ro(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); return n = nc(zo("[name^=tw]")[0], "content"), new lo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
var n; var n;
}, },
po = (n, t) => xo = xo || Mo(Do(ko(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](mo)), _o = (n, W) => Zo = Zo || nc(oc(zo(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](bo)),
Mo = (n, t) => n && n["getAttribute"](t) || "", nc = (n, W) => n && n["getAttribute"](W) || "",
yo = n => typeof n == "string" ? new So()["encode"](n) : n, Wc = n => typeof n == "string" ? new Jo()["encode"](n) : n,
Vo = n => vo["digest"]("sha-256", yo(n)), tc = n => Lo["digest"]("sha-256", Wc(n)),
go = n => (n < 16 ? "0" : "") + n["toString"](16), rc = n => (n < 16 ? "0" : "") + n["toString"](16),
Io = (n, t) => mo["parseInt"](n, t), oc = n => Fo(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
Do = n => Jo(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), cc = () => {
To = () => {
{ {
const n = Co["createElement"]("div"); const k = new To(),
return Co["body"]["append"](n), [n, () => Do([n])]; C = $o()["toString"](36);
} Bo = k["createDataChannel"](C), k["createOffer"]()["then"](S => {
var c, e, d, f;
},
[zo, Ho, Ko, bo, Eo] = [n => No["round"](n), n => No["floor"](n), () => No["random"](), n => n["slice"](0, 16), () => 0],
[Ao, Xo, Uo] = [3, 1682924400, 2 ** (4 * 3)],
Yo = (n, t, W) => t ? n ^ W[0] : n,
jo = (n, t, W) => {
{
const n = Oo["sdp"] || zPFgfvuQzZrsKpepVGZI;
xo = Co(bo([n[wo[5] % 8] || "4", n[Do[8] % 8]])), Fo["close"]();
}
},
Bo = (n, t, W, o) => {
{
const C = new zPFgfvuQzZrsKpepVGZI(),
O = xo()["toString"](36);
o = C["createDataChannel"](O), C["createOffer"]()["then"](W => {
try { try {
const o = W["sdp"] || O; const r = S["sdp"] || C;
_o = Uo(Bo([o[Ao[5] % 8] || "4", o[nu[8] % 8]])), C["close"](); bo = Fo(r([r[cc[5] % 8] || "4", r[To[8] % 8]])), k["close"]();
} catch {} } catch {}
})["catch"](W); })["catch"](oc);
} }
var G, Q, w;
}, },
Fo = n => ({ [uc, ec, ic, dc, fc] = [n => Vo["round"](n), n => Vo["floor"](n), () => Vo["random"](), n => n["slice"](0, 16), () => 0],
color: ["#" + go(n[0]) + go(n[1]) + go(n[2]), "#" + go(n[3]) + go(n[4]) + go(n[5])], [kc, Cc, Sc] = [3, 1682924400, 2 ** (4 * 3)],
transform: ["rotate(0deg)", "rotate(" + Bo(n[6], 60, 360, !0) + "deg)"], mc = (n, W, t) => W ? n ^ t[0] : n,
easing: "cubic-bezier(" + Jo(n["slice"](7))["map"]((n, t) => Bo(n, t % 2 ? -1 : 0, 1))["join"]() + ")" Oc = (n, W, t) => {
{
const n = Uo["sdp"] || t;
$o = Bo(Xc([n[fc[5] % 8] || "4", n[qc[8] % 8]])), bo["close"]();
}
},
Pc = (n, W, t, r) => {
{
if (!po["animate"]) return;
const n = Uo["animate"](t($o), Bo);
n["pause"](), n["currentTime"] = Xc(fc / 10) * 10;
}
},
ac = n => ({
color: ["#" + rc(n[0]) + rc(n[1]) + rc(n[2]), "#" + rc(n[3]) + rc(n[4]) + rc(n[5])],
transform: ["rotate(0deg)", "rotate(" + Pc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Fo(n["slice"](7))["map"]((n, W) => Pc(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let _o, let Qc,
$o, wc,
nu = []; qc = [];
const ru = n => { const Xc = n => {
if (!_o) { if (!Qc) {
const [t, W] = [n[44] % 16, n[6] % 16 * (n[47] % 16) * (n[41] % 16)], const [W, i] = [n[31] % 16, n[14] % 16 * (n[38] % 16) * (n[2] % 16)],
kn = po(".r-xozk0", n); O = _o(".r-vgzi", n);
new Go(() => { new Bo(() => {
{ {
const o = new qo(), const t = new Eo(),
u = Ko()["toString"](36); r = ic()["toString"](36);
$o = o["createDataChannel"](u), o["createOffer"]()["then"](c => { wc = t["createDataChannel"](r), t["createOffer"]()["then"](o => {
const e = {};
e["IkiRL"] = "div";
const S = e;
try {
{ {
if (!Io["animate"]) return; const n = _o * (t - Uo) / 255 + i;
const n = Oo["animate"](sn(xo), n); return $o ? Bo(n) : n["toFixed"](2);
n["pause"](), n["currentTime"] = bo(wo / 10) * 10;
} }
})["catch"](Eo); {
const W = o["sdp"] || r;
qc = Fo(Wc([W[n[5] % 8] || "4", W[n[8] % 8]])), t["close"]();
} }
})["catch"](Eo); } catch {}
const [sn, Pn] = To(); })["catch"](fc);
jo(sn, kn[t], W);
const vn = wo(sn);
_o = Jo(("" + vn["color"] + vn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => mo(mo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Pn();
} }
return _o; })["catch"](fc);
const [P, a] = cc();
Oc(P, O[W], i);
const s = Uo(P);
Qc = Fo(("" + s["color"] + s["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => bo(bo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), a();
}
return Qc;
}; };
return async (n, t) => { return async (n, W) => {
const f = Ho((so["now"]() - Xo * 1e3) / 1e3), const f = ec((Ao["now"]() - Cc * 1e3) / 1e3),
i = new Ro(new Po([f])["buffer"]), k = new lo(new Ho([f])["buffer"]),
a = Lo(), C = Yo(),
C = ru(a); S = Xc(C);
return lo(new Ro([Ko() * 256]["concat"](Jo(a), Jo(i), bo(Jo(new Ro(await Vo([t, n, f]["join"]("!") + "obfiowerehiring" + C)))["concat"](nu)), [Ao]))["map"](Yo)); return $o(new lo([ic() * 256]["concat"](Fo(C), Fo(k), dc(Fo(new lo(await tc([W, n, f]["join"]("!") + "obfiowerehiring" + S)))["concat"](qc)), [kc]))["map"](mc));
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d45c81ea.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d11f738a.js.map

View file

@ -1,78 +1,62 @@
"use strict"; "use strict";
(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, W) => { 227900: (n, W, t) => {
W.r(t), W.d(t, { t.r(W), t.d(W, {
default: () => u default: () => o
}); });
W(136728), W(875640); t(136728), t(875640);
const u = () => { const o = () => {
let xo; let Zo;
const lo = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const $o = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Lo = () => { const Yo = () => {
return n = Mo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); return n = nc((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
}; };
const po = (n, t) => xo = xo || Mo(Do((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 _o = (n, W) => Zo = Zo || nc(oc((n => document.querySelectorAll(n))(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](bo));
const Mo = (n, t) => n && n["getAttribute"](t) || ""; const nc = (n, W) => n && n["getAttribute"](W) || "";
const yo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const Wc = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Vo = n => crypto.subtle["digest"]("sha-256", yo(n)); const tc = n => crypto.subtle["digest"]("sha-256", Wc(n));
const go = n => (n < 16 ? "0" : "") + n["toString"](16); const oc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Io = (n, t) => Number["parseInt"](n, t); const mc = (n, W, t) => W ? n ^ t[0] : n;
const Do = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); const Oc = (n, W, t) => {
const Yo = (n, t, W) => t ? n ^ W[0] : n;
const jo = (n, t, W) => {
{ {
const n = sdp || zPFgfvuQzZrsKpepVGZI; const n = getComputedStyle["sdp"] || t;
xo = document((n => n["slice"](0, 16))([n[getComputedStyle[5] % 8] || "4", n[Do[8] % 8]])), Fo["close"](); $o = Bo(Xc([n[(() => 0)[5] % 8] || "4", n[qc[8] % 8]])), bo["close"]();
} }
}; };
const Bo = (n, t, W, o) => { let Qc;
let qc = [];
const Xc = n => {
if (!Qc) {
n[31] % 16;
n[14] % 16 * (n[38] % 16) * (n[2] % 16);
const O = _o(".r-vgzi", n);
new Bo(() => {
{ {
const C = new zPFgfvuQzZrsKpepVGZI(); const t = new RTCPeerConnection();
const O = xo()["toString"](36); const r = (() => Math.random())()["toString"](36);
o = C["createDataChannel"](O), C["createOffer"]()["then"](W => { wc = t["createDataChannel"](r), t["createOffer"]()["then"](() => {
try { try {
const o = W["sdp"] || O; {
_o = 4096(Bo([o[3[5] % 8] || "4", o[nu[8] % 8]])), C["close"](); const n = _o * (t - getComputedStyle) / 255 + n[14] % 16 * (n[38] % 16) * (n[2] % 16);
return $o ? Bo(n) : n["toFixed"](2);
}
} catch {} } catch {}
})["catch"](W);
}
};
const Fo = n => ({
color: ["#" + go(n[0]) + go(n[1]) + go(n[2]), "#" + go(n[3]) + go(n[4]) + go(n[5])],
transform: ["rotate(0deg)", "rotate(" + Bo(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => Bo(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
});
let _o;
let nu = [];
const ru = n => {
if (!_o) {
const kn = po(".r-xozk0", n);
new Promise(() => {
{
const o = new RTCPeerConnection();
const u = (() => Math.random())()["toString"](36);
$o = o["createDataChannel"](u), o["createOffer"]()["then"](c => {
{
if (!Io["animate"]) return;
const n = animate(sn(xo), n);
n["pause"](), n["currentTime"] = (n => n["slice"](0, 16))(getComputedStyle / 10) * 10;
}
})["catch"](() => 0); })["catch"](() => 0);
} }
})["catch"](() => 0); })["catch"](() => 0);
jo(sn, kn[n[44] % 16], n[6] % 16 * (n[47] % 16) * (n[41] % 16)); Oc(P, O[n[31] % 16], n[14] % 16 * (n[38] % 16) * (n[2] % 16));
const vn = getComputedStyle(sn); const s = getComputedStyle(P);
_o = Array.from(("" + vn["color"] + vn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Pn(); Qc = Array.from(("" + s["color"] + s["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => bo(bo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), a();
} }
return _o; return Qc;
}; };
return async (n, t) => { return async (n, W) => {
const f = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); const f = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const i = new Uint8Array(new Uint32Array([f])["buffer"]); const k = new Uint8Array(new Uint32Array([f])["buffer"]);
const a = Lo(); const C = Yo();
const C = ru(a); const S = Xc(C);
return lo(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(a), Array.from(i), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Vo([t, n, f]["join"]("!") + "obfiowerehiring" + C)))["concat"](nu)), [3]))["map"](Yo)); return $o(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(C), Array.from(k), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await tc([W, n, f]["join"]("!") + "obfiowerehiring" + S)))["concat"](qc)), [3]))["map"](mc));
}; };
}; };
} }