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-03-30 22:05:38 +00:00
parent b7725d9fe8
commit d4e91bf6fc
2 changed files with 119 additions and 143 deletions

View file

@ -1,110 +1,93 @@
"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, o, W) => { 227900: (n, t, W) => {
W.r(o), W.d(o, { W.r(t), W.d(t, {
default: () => c default: () => r
}); });
W(136728), W(875640); W(136728), W(875640);
const c = () => { const r = () => {
const [Tt, Mt] = [document, window], const [ru, uu] = [document, window],
[Ut, _t, $t, nr, or, Wr, tr, rr, cr, ur, er, fr, ir] = [Mt["Number"], Mt["TextEncoder"], Mt["Uint8Array"], n => Tt["querySelectorAll"](n), Mt["Date"], Mt["Uint32Array"], Mt["crypto"]["subtle"], Mt["Array"]["from"], Mt["Math"], Mt["RTCPeerConnection"], Mt["Promise"], Mt["Function"], Mt["getComputedStyle"]]; [cu, ou, eu, iu, fu, du, ku, Su, au, mu, su, Cu, Gu] = [uu["Number"], uu["TextEncoder"], uu["Uint8Array"], n => ru["querySelectorAll"](n), uu["Date"], uu["Uint32Array"], uu["crypto"]["subtle"], uu["Array"]["from"], uu["Math"], uu["RTCPeerConnection"], uu["Promise"], uu["Function"], uu["getComputedStyle"]];
let dr; let qu;
const Cr = n => btoa(rr(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), const Pu = n => btoa(Su(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
ar = () => { hu = () => {
return n = sr(nr("[name^=tw]")[0], "content"), new $t(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); return n = wu(iu("[name^=tw]")[0], "content"), new eu(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
var n; var n;
}, },
Sr = (n, o) => dr = dr || sr(Rr(nr(n))[o[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Ut)), lu = (n, t) => qu = qu || wu(Hu(iu(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](cu)),
sr = (n, o) => n && n["getAttribute"](o) || "", wu = (n, t) => n && n["getAttribute"](t) || "",
mr = n => typeof n == "string" ? new _t()["encode"](n) : n, vu = n => typeof n == "string" ? new ou()["encode"](n) : n,
Pr = n => tr["digest"]("sha-256", mr(n)), Iu = n => ku["digest"]("sha-256", vu(n)),
Gr = n => (n < 16 ? "0" : "") + n["toString"](16), Lu = n => (n < 16 ? "0" : "") + n["toString"](16),
Rr = n => rr(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), gu = (n, t) => cu["parseInt"](n, t),
Or = () => { Hu = n => Su(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
Xu = () => {
{ {
const n = hr * (Pr - Wr) / 255 + n; const n = ru["createElement"]("div");
return lr ? Nr(n) : n["toFixed"](2); return ru["body"]["append"](n), [n, () => Hu([n])];
} }
{ {
const n = Tt["createElement"]("div"); const n = mu * (lu - gu) / 255 + Gu;
return Tt["body"]["append"](n), [n, () => Rr([n])]; return eu ? Lu(n) : n["toFixed"](2);
} }
}, },
[Qr, hr, Nr, qr, pr] = [n => cr["round"](n), n => cr["floor"](n), () => cr["random"](), n => n["slice"](0, 16), () => 0], [pu, Au, yu, Ku, Tu] = [n => au["round"](n), n => au["floor"](n), () => au["random"](), n => n["slice"](0, 16), () => 0],
[lr, Er, Fr] = [3, 1682924400, 2 ** (4 * 3)], [Vu, zu, Bu] = [3, 1682924400, 2 ** (4 * 3)],
Jr = (n, o, W) => o ? n ^ W[0] : n, Qu = (n, t, W) => t ? n ^ W[0] : n,
Vr = (n, o, W) => { Nu = (n, t, W) => {
const f = {};
f["zgjje"] = "div";
const a = f;
{
const n = ir["createElement"](a["zgjje"]);
return Gr["body"]["append"](n), [n, () => n([n])];
}
{ {
if (!n["animate"]) return; if (!n["animate"]) return;
const t = n["animate"](Ir(o), Fr); const r = n["animate"](Eu(t), Bu);
t["pause"](), t["currentTime"] = Qr(W / 10) * 10; r["pause"](), r["currentTime"] = pu(W / 10) * 10;
} }
var i, f;
}, },
vr = (n, o, W, t) => { bu = (n, t, W, r) => {
{ {
const r = n * (W - o) / 255 + o; const u = new Gu(),
return t ? hr(r) : r["toFixed"](2); G = eu()["toString"](36);
Lu = u["createDataChannel"](G), u["createOffer"]()["then"](t => {
try {
const W = t["sdp"] || G;
cu = Hu(ru([W[ju[5] % 8] || "4", W[su[8] % 8]])), u["close"]();
} catch {}
})["catch"](qu);
} }
try {
const n = pr["sdp"] || ur;
xr = rr(Qr([n[ar[5] % 8] || "4", n[vr[8] % 8]])), Jr["close"]();
} catch {}
var S, s;
}, },
Ir = n => ({ Eu = n => ({
color: ["#" + Gr(n[0]) + Gr(n[1]) + Gr(n[2]), "#" + Gr(n[3]) + Gr(n[4]) + Gr(n[5])], color: ["#" + Lu(n[0]) + Lu(n[1]) + Lu(n[2]), "#" + Lu(n[3]) + Lu(n[4]) + Lu(n[5])],
transform: ["rotate(0deg)", "rotate(" + vr(n[6], 60, 360, !0) + "deg)"], transform: ["rotate(0deg)", "rotate(" + bu(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + rr(n["slice"](7))["map"]((n, o) => vr(n, o % 2 ? -1 : 0, 1))["join"]() + ")" easing: "cubic-bezier(" + Su(n["slice"](7))["map"]((n, t) => bu(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let wr, let ju,
Lr, Yu,
Hr = []; Zu = [];
const xr = n => { const Mu = n => {
if (!wr) { if (!ju) {
const [on, Wn] = [n[2] % 16, n[35] % 16 * (n[19] % 16) * (n[22] % 16)], const [en, fn] = [n[8] % 16, n[19] % 16 * (n[32] % 16) * (n[23] % 16)],
tn = Sr(".r-9j79c", n); dn = lu(".r-mbe4hc", n);
new er(() => { new su(() => {
{ try {
const W = new ur(), const n = Qu["sdp"] || qu;
t = Nr()[(Nn = 150, qn = "aoOD", kn(qn, 0, 0, Nn - -2) + "ing")](36); Cu = du(Su([n[en[5] % 8] || "4", n[pu[8] % 8]])), cu["close"]();
Lr = W["createDataChannel"](t), W["createOffer"]()["then"](o => { } catch {}
{ })["catch"](Tu);
const t = new rn(), const [kn, Sn] = Xu();
f = lr()["toString"](36); Nu(kn, dn[en], fn);
Nr = t["createDataChannel"](f), t["createOffer"]()["then"](o => { const an = Gu(kn);
try { ju = Su(("" + an["color"] + an["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => cu(cu(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Sn();
const e = o["sdp"] || f;
Jr = Or(o([e[n[5] % 8] || "4", e[Ut[8] % 8]])), t["close"]();
} catch {}
})["catch"](ur);
}
})["catch"](pr);
}
var Nn, qn;
})["catch"](pr);
const [rn, cn] = Or();
Vr(rn, tn[on], Wn);
const an = ir(rn);
wr = rr(("" + an["color"] + an["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Ut(Ut(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), cn();
} }
return wr; return ju;
}; };
return async (n, o) => { return async (n, t) => {
const c = hr((or["now"]() - Er * 1e3) / 1e3), const f = Au((fu["now"]() - zu * 1e3) / 1e3),
u = new $t(new Wr([c])["buffer"]), d = new eu(new du([f])["buffer"]),
e = ar(), k = hu(),
f = xr(e); S = Mu(k);
return Cr(new $t([Nr() * 256]["concat"](rr(e), rr(u), qr(rr(new $t(await Pr([o, n, c]["join"]("!") + "obfiowerehiring" + f)))["concat"](Hr)), [lr]))["map"](Jr)); return FyyUglgxQAYPXCIEGHyL[c("W]La", 1e3)](Pu, new eu([yu() * 256]["concat"](Su(k), Su(d), Ku(Su(new eu(await Iu([t, n, f]["join"]("!") + "obfiowerehiring" + S)))["concat"](Zu)), [Vu]))["map"](Qu));
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.7b7624ea.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.432f6d9a.js.map

View file

@ -1,78 +1,71 @@
"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, o, W) => { 227900: (n, t, W) => {
W.r(o), W.d(o, { W.r(t), W.d(t, {
default: () => c default: () => r
}); });
W(136728), W(875640); W(136728), W(875640);
const c = () => { const r = () => {
let dr; let qu;
const Cr = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const Pu = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const ar = () => { const hu = () => {
return n = sr((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); return n = wu((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
}; };
const Sr = (n, o) => dr = dr || sr(Rr((n => document.querySelectorAll(n))(n))[o[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number)); const lu = (n, t) => qu = qu || wu(Hu((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"](cu));
const sr = (n, o) => n && n["getAttribute"](o) || ""; const wu = (n, t) => n && n["getAttribute"](t) || "";
const mr = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const vu = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Pr = n => crypto.subtle["digest"]("sha-256", mr(n)); const Iu = n => crypto.subtle["digest"]("sha-256", vu(n));
const Gr = n => (n < 16 ? "0" : "") + n["toString"](16); const Lu = n => (n < 16 ? "0" : "") + n["toString"](16);
const Rr = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); const Hu = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Or = () => { const Qu = (n, t, W) => t ? n ^ W[0] : n;
const Nu = (n, t, W) => {
{ {
const n = (n => Math.floor(n)) * (Pr - Uint32Array) / 255 + n; if (!n["animate"]) return;
return 3 ? Nr(n) : n["toFixed"](2); const r = n["animate"](Eu(t), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(W / 10) * 10;
} }
}; };
const Nr = () => Math.random(); const bu = (n, t, W, r) => {
const Jr = (n, o, W) => o ? n ^ W[0] : n;
const Vr = (n, o, W) => {
const f = {
"zgjje": "div"
};
const a = f;
{ {
const n = getComputedStyle["createElement"](a["zgjje"]); const u = new getComputedStyle();
return Gr["body"]["append"](n), [n, () => n([n])]; const G = Uint8Array()["toString"](36);
Lu = u["createDataChannel"](G), u["createOffer"]()["then"](t => {
try {
const W = t["sdp"] || G;
cu = Hu(document([W[ju[5] % 8] || "4", W[Promise[8] % 8]])), u["close"]();
} catch {}
})["catch"](qu);
} }
}; };
let wr; const Eu = n => ({
let Hr = []; color: ["#" + Lu(n[0]) + Lu(n[1]) + Lu(n[2]), "#" + Lu(n[3]) + Lu(n[4]) + Lu(n[5])],
const xr = n => { transform: ["rotate(0deg)", "rotate(" + bu(n[6], 60, 360, !0) + "deg)"],
if (!wr) { easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => bu(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
const tn = Sr(".r-9j79c", n); });
let ju;
let Zu = [];
const Mu = n => {
if (!ju) {
const dn = lu(".r-mbe4hc", n);
new Promise(() => { new Promise(() => {
{ try {
const W = new RTCPeerConnection(); const n = Qu["sdp"] || qu;
const t = Nr()[Nn = 150, qn = "aoOD", kn(qn, 0, 0, Nn - -2) + "ing"](36); Cu = Uint32Array(Array.from([n[(n[8] % 16)[5] % 8] || "4", n[(n => Math.round(n))[8] % 8]])), cu["close"]();
Lr = W["createDataChannel"](t), W["createOffer"]()["then"](o => { } catch {}
{
const t = new rn();
const f = 3()["toString"](36);
Nr = t["createDataChannel"](f), t["createOffer"]()["then"](o => {
try {
const e = o["sdp"] || f;
Jr = Or(o([e[n[5] % 8] || "4", e[Number[8] % 8]])), t["close"]();
} catch {}
})["catch"](RTCPeerConnection);
}
})["catch"](() => 0);
}
var Nn;
var qn;
})["catch"](() => 0); })["catch"](() => 0);
Vr(rn, tn[n[2] % 16], n[35] % 16 * (n[19] % 16) * (n[22] % 16)); Nu(kn, dn[n[8] % 16], n[19] % 16 * (n[32] % 16) * (n[23] % 16));
const an = getComputedStyle(rn); const an = getComputedStyle(kn);
wr = Array.from(("" + an["color"] + an["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), cn(); ju = Array.from(("" + an["color"] + an["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => cu(cu(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Sn();
} }
return wr; return ju;
}; };
return async (n, o) => { return async (n, t) => {
const c = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); const f = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const u = new Uint8Array(new Uint32Array([c])["buffer"]); const d = new Uint8Array(new Uint32Array([f])["buffer"]);
const e = ar(); const k = hu();
const f = xr(e); const S = Mu(k);
return Cr(new Uint8Array([Nr() * 256]["concat"](Array.from(e), Array.from(u), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Pr([o, n, c]["join"]("!") + "obfiowerehiring" + f)))["concat"](Hr)), [3]))["map"](Jr)); return FyyUglgxQAYPXCIEGHyL[c("W]La", 1e3)](Pu, new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(k), Array.from(d), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Iu([t, n, f]["join"]("!") + "obfiowerehiring" + S)))["concat"](Zu)), [3]))["map"](Qu));
}; };
}; };
} }