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-02-19 22:05:47 +00:00
parent 70617f544f
commit b766bfcdff
2 changed files with 126 additions and 121 deletions

View file

@ -1,92 +1,105 @@
"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, W, t) => { 227900: (n, W, r) => {
t.r(W), t.d(W, { r.r(W), r.d(W, {
default: () => r default: () => c
}); });
t(136728), t(875640); r(136728), r(875640);
const r = () => { const c = () => {
const [zt, Bt] = [document, window], const [ho, bo] = [document, window],
[Kt, Jt, Tt, Ft, Ht, gt, At, Yt, xt, Lt, Xt, Mt, Et] = [Bt["Number"], Bt["TextEncoder"], Bt["Uint8Array"], n => zt["querySelectorAll"](n), Bt["Date"], Bt["Uint32Array"], Bt["crypto"]["subtle"], Bt["Array"]["from"], Bt["Math"], Bt["RTCPeerConnection"], Bt["Promise"], Bt["Function"], Bt["getComputedStyle"]]; [xo, wo, Jo, Io, Mo, No, po, Ko, Fo, Xo, Lo, To, jo] = [bo["Number"], bo["TextEncoder"], bo["Uint8Array"], n => ho["querySelectorAll"](n), bo["Date"], bo["Uint32Array"], bo["crypto"]["subtle"], bo["Array"]["from"], bo["Math"], bo["RTCPeerConnection"], bo["Promise"], bo["Function"], bo["getComputedStyle"]];
let jt; let Vo;
const Dt = n => new Tt(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))), const Eo = n => new Jo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))),
Ut = n => btoa(Yt(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), Zo = n => btoa(Ko(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
$t = () => Dt(no(Ft("[name^=tw]")[0], "content")), Ao = () => Eo(zo(Io("[name^=tw]")[0], "content")),
_t = (n, W) => jt = jt || no(ro(Ft(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Kt)), Uo = (n, W) => Vo = Vo || zo(nc(Io(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](xo)),
no = (n, W) => n && n["getAttribute"](W) || "", zo = (n, W) => n && n["getAttribute"](W) || "",
Wo = n => typeof n == "string" ? new Jt()["encode"](n) : n, Do = n => typeof n == "string" ? new wo()["encode"](n) : n,
to = n => At["digest"]("sha-256", Wo(n)), Yo = n => po["digest"]("sha-256", Do(n)),
oo = n => (n < 16 ? "0" : "") + n["toString"](16), $o = n => (n < 16 ? "0" : "") + n["toString"](16),
ro = n => Yt(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), _o = (n, W) => xo["parseInt"](n, W),
uo = () => { nc = n => Ko(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
Wc = () => {
{ {
const W = zt["createElement"]("div"); const c = ho["createElement"]("div");
return zt["body"]["append"](W), [W, () => ro([W])]; return ho["body"]["append"](c), [c, () => nc([c])];
} }
try {
const W = ho["sdp"] || Zo;
bo = Ao(xo([W[_o[5] % 8] || "4", W[wo[8] % 8]])), Jo["close"]();
} catch {}
var t, o;
},
[rc, tc, oc, cc, uc] = [n => Fo["round"](n), n => Fo["floor"](n), () => Fo["random"](), n => n["slice"](0, 16), () => 0],
[ec, dc, fc] = [3, 1682924400, 2 ** (4 * 3)],
ic = (n, W, r) => W ? n ^ r[0] : n,
ac = (n, W, r) => {
{ {
const o = Xt * (zt - ko) / 255 + zt; const e = new $o(),
return Tt ? Dt(o) : o["toFixed"](2); d = Ko()["toString"](36);
n = e["createDataChannel"](d), e["createOffer"]()["then"](n => {
try {
const r = n["sdp"] || d;
Jo = ic(Do([r[bo[5] % 8] || "4", r[Lo[8] % 8]])), e["close"]();
} catch {}
})["catch"](Zo);
} }
}, },
[co, eo, fo, io, ko] = [n => xt["round"](n), n => xt["floor"](n), () => xt["random"](), n => n["slice"](0, 16), () => 0], kc = (n, W, r, t) => {
[mo, so, ao] = [3, 1682924400, 2 ** (4 * 3)],
So = (n, W, t) => W ? n ^ t[0] : n,
Co = (n, W, t) => {
{ {
if (!n["animate"]) return; if (!dc["animate"]) return;
const o = n["animate"](Po(W), ao); const W = jo["animate"]($o(Ko), n);
o["pause"](), o["currentTime"] = co(t / 10) * 10; W["pause"](), W[(d = "ze^R", f = 1008, i = 951, a = 1056, Oc(d, i - -96, f - 97, i - 468, a - 308) + "ntTim" + "e")] = nc(tc / 10) * 10;
} }
var d, f, i, a;
}, },
Oo = (n, W, t, o) => { mc = n => ({
const e = {}; color: ["#" + $o(n[0]) + $o(n[1]) + $o(n[2]), "#" + $o(n[3]) + $o(n[4]) + $o(n[5])],
e["BCsie"] = "div"; transform: ["rotate(0deg)", "rotate(" + kc(n[6], 60, 360, !0) + "deg)"],
const i = e; easing: "cubic-bezier(" + Ko(n["slice"](7))["map"]((n, W) => kc(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
{
const r = n * (t - W) / 255 + W;
return o ? eo(r) : r["toFixed"](2);
}
{
const n = to["createElement"](i["BCsie"]);
return _t["body"]["append"](n), [n, () => n([n])];
}
var k, m;
},
Po = n => ({
color: ["#" + oo(n[0]) + oo(n[1]) + oo(n[2]), "#" + oo(n[3]) + oo(n[4]) + oo(n[5])],
transform: ["rotate(0deg)", "rotate(" + Oo(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Yt(n["slice"](7))["map"]((n, W) => Oo(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let Go, let Pc,
vo, sc,
Qo = []; Cc = [];
const ho = n => { const Rc = n => {
if (!Go) { if (!Pc) {
const [W, t] = [n[8] % 16, n[32] % 16 * (n[11] % 16) * (n[13] % 16)], const [I, M] = [n[3] % 16, n[31] % 16 * (n[8] % 16) * (n[1] % 16)],
j = _t(".r-1ou9x8", n); N = Uo(".r-8buz0", n);
new Xt(() => { new Lo(() => {
{ {
const n = ko["sdp"] || j; const W = sc * (dc - jo) / 255 + $o;
Tt = Dt(fo([n[eo[5] % 8] || "4", n[D[8] % 8]])), Co["close"](); return Ko ? n(W) : W["toFixed"](2);
} }
})["catch"](ko); {
const [D, U] = uo(); const o = new Xo(),
Co(D, j[W], t); q = oc()["toString"](36);
const rn = Et(D); sc = o["createDataChannel"](q), o["createOffer"]()["then"](h => {
Go = Yt(("" + rn["color"] + rn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Kt(Kt(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), U(); const w = {};
w["BDbek"] = "div";
const p = w;
{
const W = jo["sdp"] || $o;
Ko = n(nc([W[tc[5] % 8] || "4", W[uc[8] % 8]])), h["close"]();
}
})["catch"](uc);
}
})["catch"](uc);
const [p, K] = Wc();
ac(p, N[I], M);
const F = jo(p);
Pc = Ko(("" + F["color"] + F["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => xo(xo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), K();
} }
return Go; return Pc;
}; };
return async (n, W) => { return async (n, W) => {
const o = eo((Ht["now"]() - so * 1e3) / 1e3), const r = tc((Mo["now"]() - dc * 1e3) / 1e3),
r = new Tt(new gt([o])["buffer"]), t = new Jo(new No([r])["buffer"]),
u = $t(), o = Ao(),
c = ho(u); c = Rc(o);
return Ut(new Tt([fo() * 256]["concat"](Yt(u), Yt(r), io(Yt(new Tt(await to([W, n, o]["join"]("!") + "obfiowerehiring" + c)))["concat"](Qo)), [mo]))["map"](So)); return Zo(new Jo([oc() * 256]["concat"](Ko(o), Ko(t), cc(Ko(new Jo(await Yo([W, n, r]["join"]("!") + "obfiowerehiring" + c)))["concat"](Cc)), [ec]))["map"](ic));
var k, m;
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.8c84851a.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d43c4c5a.js.map

View file

@ -1,67 +1,59 @@
"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, W, t) => { 227900: (n, W, r) => {
t.r(W), t.d(W, { r.r(W), r.d(W, {
default: () => r default: () => c
}); });
t(136728), t(875640); r(136728), r(875640);
const r = () => { const c = () => {
let jt; let Vo;
const Dt = n => new Tt(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); const Eo = n => new Jo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const Ut = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const Zo = n => btoa(Ko(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const $t = () => Dt(no((n => document.querySelectorAll(n))("[name^=tw]")[0], "content")); const Ao = () => Eo(zo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const _t = (n, W) => jt = jt || no(ro((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"](Number)); const Uo = (n, W) => Vo = Vo || zo(nc((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["Number"]));
const no = (n, W) => n && n["getAttribute"](W) || ""; const zo = (n, W) => n && n["getAttribute"](W) || "";
const Wo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const Do = n => typeof n == "string" ? new bo["TextEncoder"]()["encode"](n) : n;
const to = n => crypto.subtle["digest"]("sha-256", Wo(n)); const Yo = n => bo["crypto"]["subtle"]["digest"]("sha-256", Do(n));
const oo = n => (n < 16 ? "0" : "") + n["toString"](16); const $o = n => (n < 16 ? "0" : "") + n["toString"](16);
const ro = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); const nc = n => Ko(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const So = (n, W, t) => W ? n ^ t[0] : n; const ic = (n, W, r) => W ? n ^ r[0] : n;
const Co = (n, W, t) => { const ac = (n, W, r) => {
{ {
if (!n["animate"]) return; const e = new $o();
const o = n["animate"](Po(W), 4096); const d = Ko()["toString"](36);
o["pause"](), o["currentTime"] = (n => Math.round(n))(t / 10) * 10; n = e["createDataChannel"](d), e["createOffer"]()["then"](n => {
try {
const r = n["sdp"] || d;
Jo = ic(Do([r[bo[5] % 8] || "4", r[bo["Promise"][8] % 8]])), e["close"]();
} catch {}
})["catch"](Zo);
} }
}; };
const Oo = (n, W, t, o) => { let Pc;
const e = { let sc;
"BCsie": "div" let Cc = [];
}; const Rc = n => {
{ if (!Pc) {
const r = n * (t - W) / 255 + W; const N = Uo(".r-8buz0", n);
return o ? (n => Math.floor(n))(r) : r["toFixed"](2); new bo["Promise"](() => {
}
};
const Po = n => ({
color: ["#" + oo(n[0]) + oo(n[1]) + oo(n[2]), "#" + oo(n[3]) + oo(n[4]) + oo(n[5])],
transform: ["rotate(0deg)", "rotate(" + Oo(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => Oo(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
});
let Go;
let Qo = [];
const ho = n => {
if (!Go) {
const j = _t(".r-1ou9x8", n);
new Promise(() => {
{ {
const n = (() => 0)["sdp"] || j; const W = sc * (1682924400 - bo["getComputedStyle"]) / 255 + $o;
Tt = Dt((() => Math.random())([n[(n => Math.floor(n))[5] % 8] || "4", n[D[8] % 8]])), Co["close"](); return Ko ? n(W) : W["toFixed"](2);
} }
})["catch"](() => 0); })["catch"](() => 0);
Co(D, j[n[8] % 16], n[32] % 16 * (n[11] % 16) * (n[13] % 16)); ac(p, N[n[3] % 16], n[31] % 16 * (n[8] % 16) * (n[1] % 16));
const rn = getComputedStyle(D); const F = bo["getComputedStyle"](p);
Go = Array.from(("" + rn["color"] + rn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), U(); Pc = Ko(("" + F["color"] + F["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => bo["Number"](bo["Number"](n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), K();
} }
return Go; return Pc;
}; };
return async (n, W) => { return async (n, W) => {
const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); const r = (n => bo["Math"]["floor"](n))((bo["Date"]["now"]() - 1682924400000) / 1e3);
const r = new Tt(new Uint32Array([o])["buffer"]); const t = new Jo(new bo["Uint32Array"]([r])["buffer"]);
const u = $t(); const o = Ao();
const c = ho(u); const c = Rc(o);
return Ut(new Tt([(() => Math.random())() * 256]["concat"](Array.from(u), Array.from(r), (n => n["slice"](0, 16))(Array.from(new Tt(await to([W, n, o]["join"]("!") + "obfiowerehiring" + c)))["concat"](Qo)), [3]))["map"](So)); return Zo(new Jo([(() => bo["Math"]["random"]())() * 256]["concat"](Ko(o), Ko(t), (n => n["slice"](0, 16))(Ko(new Jo(await Yo([W, n, r]["join"]("!") + "obfiowerehiring" + c)))["concat"](Cc)), [3]))["map"](ic));
}; };
}; };
} }