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-23 22:05:49 +00:00
parent cf4e146e05
commit 3a1ed0626e
2 changed files with 135 additions and 127 deletions

View file

@ -1,102 +1,104 @@
"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, t, r) => {
t.r(W), t.d(W, { r.r(t), r.d(t, {
default: () => o default: () => c
}); });
t(136728), t(875640); r(136728), r(875640);
const o = () => { const c = () => {
const [po, To] = [document, window], const [vW, IW] = [document, window],
[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"]]; [LW, NW, bW, gW, AW, MW, jW, BW, xW, XW, JW, yW, HW] = [IW["Number"], IW["TextEncoder"], IW["Uint8Array"], n => vW["querySelectorAll"](n), IW["Date"], IW["Uint32Array"], IW["crypto"]["subtle"], IW["Array"]["from"], IW["Math"], IW["RTCPeerConnection"], IW["Promise"], IW["Function"], IW["getComputedStyle"]];
let Zo; let FW;
const $o = n => btoa(Fo(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), const zW = n => btoa(BW(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
Yo = () => { YW = () => {
return n = nc(zo("[name^=tw]")[0], "content"), new lo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); return n = UW(gW("[name^=tw]")[0], "content"), new bW(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
var n; var n;
}, },
_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)), EW = (n, t) => FW = FW || UW(to(gW(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](LW)),
nc = (n, W) => n && n["getAttribute"](W) || "", UW = (n, t) => n && n["getAttribute"](t) || "",
Wc = n => typeof n == "string" ? new Jo()["encode"](n) : n, TW = n => typeof n == "string" ? new NW()["encode"](n) : n,
tc = n => Lo["digest"]("sha-256", Wc(n)), $W = n => jW["digest"]("sha-256", TW(n)),
rc = n => (n < 16 ? "0" : "") + n["toString"](16), _W = n => (n < 16 ? "0" : "") + n["toString"](16),
oc = n => Fo(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), no = (n, t) => LW["parseInt"](n, t),
cc = () => { to = n => BW(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
ro = () => {
try {
const n = eo["sdp"] || Wo;
BW = UW(lo([n[to[5] % 8] || "4", n[YW[8] % 8]])), ao["close"]();
} catch {}
},
[Wo, oo, co, uo, eo] = [n => xW["round"](n), n => xW["floor"](n), () => xW["random"](), n => n["slice"](0, 16), () => 0],
[fo, io, ko] = [3, 1682924400, 2 ** (4 * 3)],
ao = (n, t, r) => t ? n ^ r[0] : n,
so = (n, t, r) => {
{ {
const k = new To(), const n = ro * (qo - HW) / 255 + IW;
C = $o()["toString"](36); return r ? NW(n) : n["toFixed"](2);
Bo = k["createDataChannel"](C), k["createOffer"]()["then"](S => { }
{
if (!n["animate"]) return;
const W = n["animate"](Co(t), ko);
W["pause"](), W["currentTime"] = Wo(r / 10) * 10;
}
},
Po = (n, t, r, o) => {
{
const a = new o(),
s = r()["toString"](36);
NW = a["createDataChannel"](s), a[(K = "R4z%", h = 260, VW(0, K, 0, 0, h - 432) + "eOffe" + "r")]()["then"](r => {
try { try {
const r = S["sdp"] || C; const n = r["sdp"] || s;
bo = Fo(r([r[cc[5] % 8] || "4", r[To[8] % 8]])), k["close"](); ao = JW(LW([n[gW[5] % 8] || "4", n[t[8] % 8]])), a["close"]();
} catch {} } catch {}
})["catch"](oc); })["catch"](Wo);
} }
var K, h;
}, },
[uc, ec, ic, dc, fc] = [n => Vo["round"](n), n => Vo["floor"](n), () => Vo["random"](), n => n["slice"](0, 16), () => 0], Co = n => ({
[kc, Cc, Sc] = [3, 1682924400, 2 ** (4 * 3)], color: ["#" + _W(n[0]) + _W(n[1]) + _W(n[2]), "#" + _W(n[3]) + _W(n[4]) + _W(n[5])],
mc = (n, W, t) => W ? n ^ t[0] : n, transform: ["rotate(0deg)", "rotate(" + Po(n[6], 60, 360, !0) + "deg)"],
Oc = (n, W, t) => { easing: "cubic-bezier(" + BW(n["slice"](7))["map"]((n, t) => Po(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
{
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 Qc, let So,
wc, qo,
qc = []; mo = [];
const Xc = n => { const lo = n => {
if (!Qc) { if (!So) {
const [W, i] = [n[31] % 16, n[14] % 16 * (n[38] % 16) * (n[2] % 16)], const [t, bn] = [n[3] % 16, n[39] % 16 * (n[9] % 16) * (n[14] % 16)],
O = _o(".r-vgzi", n); xn = EW(".r-jwl2k0", n);
new Bo(() => { new JW(() => {
{ {
const t = new Eo(), const r = new XW(),
r = ic()["toString"](36); W = co()["toString"](36);
wc = t["createDataChannel"](r), t["createOffer"]()["then"](o => { qo = r["createDataChannel"](W), r["createOffer"]()["then"](o => {
const e = {}; const k = {};
e["IkiRL"] = "div"; k["JJroT"] = "div";
const S = e; const C = k;
try { {
{ if (!qo["animate"]) return;
const n = _o * (t - Uo) / 255 + i; const n = HW["animate"](n(bn), Jn);
return $o ? Bo(n) : n["toFixed"](2); n["pause"](), n["currentTime"] = TW(yn / 10) * 10;
} }
{ })["catch"](eo);
const W = o["sdp"] || r;
qc = Fo(Wc([W[n[5] % 8] || "4", W[n[8] % 8]])), t["close"]();
}
} catch {}
})["catch"](fc);
} }
})["catch"](fc); })["catch"](eo);
const [P, a] = cc(); const [Xn, Jn] = ro();
Oc(P, O[W], i); so(Xn, xn[t], bn);
const s = Uo(P); const yn = HW(Xn);
Qc = Fo(("" + s["color"] + s["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => bo(bo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), a(); So = BW(("" + yn["color"] + yn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => LW(LW(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Jn();
} }
return Qc; return So;
}; };
return async (n, W) => { return async (n, t) => {
const f = ec((Ao["now"]() - Cc * 1e3) / 1e3), const c = oo((AW["now"]() - io * 1e3) / 1e3),
k = new lo(new Ho([f])["buffer"]), u = new bW(new MW([c])[(f = "S#5*", i = 471, pW(0, 0, f, i - 242) + "r")]),
C = Yo(), e = YW(),
S = Xc(C); d = lo(e);
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)); var f, i;
return zW(new bW([co() * 256]["concat"](BW(e), BW(u), uo(BW(new bW(await $W([t, n, c]["join"]("!") + "obfiowerehiring" + d)))["concat"](mo)), [fo]))["map"](ao));
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d11f738a.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d4a2a58a.js.map

View file

@ -1,62 +1,68 @@
"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, t, r) => {
t.r(W), t.d(W, { r.r(t), r.d(t, {
default: () => o default: () => c
}); });
t(136728), t(875640); r(136728), r(875640);
const o = () => { const c = () => {
let Zo; let FW;
const $o = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const zW = n => btoa(BW(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Yo = () => { const YW = () => {
return n = nc((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); return n = UW((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
}; };
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 EW = (n, t) => FW = FW || UW(to((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 nc = (n, W) => n && n["getAttribute"](W) || ""; const UW = (n, t) => n && n["getAttribute"](t) || "";
const Wc = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const TW = n => typeof n == "string" ? new NW()["encode"](n) : n;
const tc = n => crypto.subtle["digest"]("sha-256", Wc(n)); const $W = n => crypto.subtle["digest"]("sha-256", TW(n));
const oc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); const to = n => BW(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const mc = (n, W, t) => W ? n ^ t[0] : n; const ro = () => {
const Oc = (n, W, t) => { try {
const n = (() => 0)["sdp"] || (n => Math.round(n));
BW = UW(lo([n[to[5] % 8] || "4", n[YW[8] % 8]])), ao["close"]();
} catch {}
};
const ao = (n, t, r) => t ? n ^ r[0] : n;
const so = (n, t, r) => {
{ {
const n = getComputedStyle["sdp"] || t; const n = ro * (qo - getComputedStyle) / 255 + window;
$o = Bo(Xc([n[(() => 0)[5] % 8] || "4", n[qc[8] % 8]])), bo["close"](); return r ? NW(n) : n["toFixed"](2);
} }
}; };
let Qc; let So;
let qc = []; let qo;
const Xc = n => { let mo = [];
if (!Qc) { const lo = n => {
n[31] % 16; if (!So) {
n[14] % 16 * (n[38] % 16) * (n[2] % 16); const xn = EW(".r-jwl2k0", n);
const O = _o(".r-vgzi", n); new Promise(() => {
new Bo(() => {
{ {
const t = new RTCPeerConnection(); const r = new RTCPeerConnection();
const r = (() => Math.random())()["toString"](36); const W = (() => Math.random())()["toString"](36);
wc = t["createDataChannel"](r), t["createOffer"]()["then"](() => { qo = r["createDataChannel"](W), r["createOffer"]()["then"](o => {
try { {
{ if (!qo["animate"]) return;
const n = _o * (t - getComputedStyle) / 255 + n[14] % 16 * (n[38] % 16) * (n[2] % 16); const n = getComputedStyle["animate"](n(n[39] % 16 * (n[9] % 16) * (n[14] % 16)), Jn);
return $o ? Bo(n) : n["toFixed"](2); n["pause"](), n["currentTime"] = TW(yn / 10) * 10;
} }
} catch {}
})["catch"](() => 0); })["catch"](() => 0);
} }
})["catch"](() => 0); })["catch"](() => 0);
Oc(P, O[n[31] % 16], n[14] % 16 * (n[38] % 16) * (n[2] % 16)); so(Xn, xn[n[3] % 16], n[39] % 16 * (n[9] % 16) * (n[14] % 16));
const s = getComputedStyle(P); const yn = getComputedStyle(Xn);
Qc = Array.from(("" + s["color"] + s["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => bo(bo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), a(); So = BW(("" + yn["color"] + yn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Jn();
} }
return Qc; return So;
}; };
return async (n, W) => { return async (n, t) => {
const f = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); const c = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const k = new Uint8Array(new Uint32Array([f])["buffer"]); const u = new Uint8Array(new Uint32Array([c])[f = "S#5*", i = 471, pW(0, 0, f, i - 242) + "r"]);
const C = Yo(); const e = YW();
const S = Xc(C); const d = lo(e);
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)); var f;
var i;
return zW(new Uint8Array([(() => Math.random())() * 256]["concat"](BW(e), BW(u), (n => n["slice"](0, 16))(BW(new Uint8Array(await $W([t, n, c]["join"]("!") + "obfiowerehiring" + d)))["concat"](mo)), [3]))["map"](ao));
}; };
}; };
} }