1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 07:30:38 +01:00

Update deobfuscation

Changes detected in source file
run:base failed
run:fork succeeded
run:additional succeeded
This commit is contained in:
GitHub Action 2025-07-17 22:06:46 +00:00
parent 03f8472a9b
commit d91c716bdc
4 changed files with 178 additions and 642 deletions

View file

@ -1,80 +1,72 @@
"use strict";
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, W, t) => {
t.r(W), t.d(W, {
227900: (n, t, r) => {
r.r(t), r.d(t, {
default: () => c
});
t(136728), t(875640);
r(136728), r(875640);
const c = () => {
let vr;
const Fr = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const Jr = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Zr = () => Fr(Er(br("[name^=tw]")[0], "content"));
const Dr = (n, W) => vr = vr || Er(Yr(br(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number));
const Er = (n, W) => n && n["getAttribute"](W) || "";
const Hr = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Xr = n => crypto.subtle["digest"]("sha-256", Hr(n));
const Mr = n => (n < 16 ? "0" : "") + n["toString"](16);
const Yr = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const ec = (n, W, t) => W ? n ^ t[0] : n;
const fc = (n, W, t) => {
let VW;
const zW = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const NW = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const UW = () => zW(vW((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const gW = (n, t) => VW = VW || vW(DW((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 vW = (n, t) => n && n["getAttribute"](t) || "";
const LW = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const FW = n => crypto.subtle["digest"]("sha-256", LW(n));
const wW = n => (n < 16 ? "0" : "") + n["toString"](16);
const DW = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const no = (n, t, r) => t ? n ^ r[0] : n;
const to = (n, t, r) => {
{
if (!n["animate"]) return;
const r = n["animate"](dc(W), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(t / 10) * 10;
const W = n["animate"](Wo(t), 4096);
W["pause"](), W["currentTime"] = (n => Math.round(n))(r / 10) * 10;
}
};
const ic = (n, W, t, c) => {
const ro = (n, t, r, W) => {
{
const r = n * (t - W) / 255 + W;
return c ? (n => Math.floor(n))(r) : r["toFixed"](2);
const o = n * (r - t) / 255 + t;
return W ? (n => Math.floor(n))(o) : o["toFixed"](2);
}
};
const dc = n => ({
color: ["#" + Mr(n[0]) + Mr(n[1]) + Mr(n[2]), "#" + Mr(n[3]) + Mr(n[4]) + Mr(n[5])],
transform: ["rotate(0deg)", "rotate(" + ic(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => ic(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
const Wo = n => ({
color: ["#" + wW(n[0]) + wW(n[1]) + wW(n[2]), "#" + wW(n[3]) + wW(n[4]) + wW(n[5])],
transform: ["rotate(0deg)", "rotate(" + ro(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => ro(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
});
let ac;
let Sc;
let sc = [];
const qc = n => {
if (!ac) {
const J = Dr(".r-9vhjo", n);
let oo;
let uo = [];
const io = n => {
if (!oo) {
const a = gW(".r-yk5c0", n);
new Promise(() => {
{
const b = new RTCPeerConnection();
const w = (() => Math.random())()["toString"](36);
Sc = b["createDataChannel"](w), b["createOffer"]()["then"](B => {
if (LxQREHSvvGUKCTGsrsxC[x("[QTo", 0, 1143, 0, 1179)](LxQREHSvvGUKCTGsrsxC[x("wD@f", 0, 1236, 0, 1348)], "nyMjG")) {
const n = Sc["creat" + x("IRae", 0, 1122, 0, 1236) + "ent"](LxQREHSvvGUKCTGsrsxC[x("fX9r", 0, 1231, 0, 1312)]);
return (n[0] % 16 * (n[24] % 16) * (n[35] % 16))["body"]["append"](n), [n, () => n([n])];
}
const t = new RTCPeerConnection();
const r = (() => Math.random())()["toString"](36);
co = t["createDataChannel"](r), t["createOffer"]()["then"](W => {
try {
if (LxQREHSvvGUKCTGsrsxC[x("c0gT", 0, 1240, 0, 1281)] !== "wXgIf") try {
const n = sc["sdp"] || Z;
cc = crypto.subtle(ec([n[GTnUHyFitQZAyVgXhMjM[x("fzSg", 0, 1292, 0, 1169)](Xr[5], 8)] || "4", n[Er[8] % 8]])), Yr["close"]();
} catch {} else {
const W = B["sdp"] || w;
sc = Array.from(LxQREHSvvGUKCTGsrsxC[x("V0z&", 0, 1223, 0, 1181)](Hr, [W[n[5] % 8] || "4", W[n[8] % 8]])), b["close"]();
{
const o = W[S(0, 0, 0, "N[MV", 1087)] || r;
uo = vtrklKcyXwpkuRIRPjbh[S(0, 0, 0, "RH7Q", 964)](Array.from, LW([o[n[5] % 8] || "4", o[vtrklKcyXwpkuRIRPjbh[S(0, 0, 0, "tJTi", 1041)](n[8], 8)]])), t["close"]();
}
} catch {}
})["catch"](() => 0);
}
})["catch"](() => 0);
fc(Z, J[n[24] % 16], n[0] % 16 * (n[24] % 16) * (n[35] % 16));
const E = getComputedStyle(Z);
ac = Array.from(("" + E["color"] + E["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), D();
to(m, a[n[12] % 16], n[43] % 16 * (n[19] % 16) * (n[45] % 16));
const q = getComputedStyle(m);
oo = Array.from(("" + q["color"] + q["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), C();
}
return ac;
return oo;
};
return async (n, W) => {
const f = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const i = new Uint8Array(new Uint32Array([f])["buffer"]);
const d = Zr();
const k = qc(d);
return Jr(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(d), Array.from(i), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Xr([W, n, f]["join"]("!") + "obfiowerehiring" + k)))["concat"](sc)), [3]))["map"](ec));
return async (n, t) => {
const c = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const u = new Uint8Array(new Uint32Array([c])["buffer"]);
const e = UW();
const f = io(e);
return NW(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(e), Array.from(u), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await FW([t, n, c]["join"]("!") + "obfiowerehiring" + f)))["concat"](uo)), [3]))["map"](no));
};
};
}