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 succeeded
run:fork succeeded
run:additional succeeded
This commit is contained in:
GitHub Action 2025-07-26 22:06:29 +00:00
parent 074fe87318
commit 4d0bc3b46e
5 changed files with 246 additions and 260 deletions

View file

@ -1,74 +1,72 @@
"use strict";
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, t, W) => {
W.r(t), W.d(t, {
default: () => u
227900: (n, W, r) => {
r.r(W), r.d(W, {
default: () => c
});
W(136728), W(875640);
const u = () => {
let Oc;
const Kc = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Xc = () => {
return n = Jc((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
};
const Fc = (n, t) => Oc = Oc || Jc(Qc((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 Jc = (n, t) => n && n["getAttribute"](t) || "";
const Mc = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const vc = n => crypto.subtle["digest"]("sha-256", Mc(n));
const Bc = n => (n < 16 ? "0" : "") + n["toString"](16);
const Qc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Zc = () => 0;
const Yc = (n, t, W) => t ? n ^ W[0] : n;
const Vc = (n, t, W) => {
r(136728), r(875640);
const c = () => {
let uu;
const ou = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const eu = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const iu = () => ou(du((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const fu = (n, W) => uu = uu || du(Ru((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 du = (n, W) => n && n["getAttribute"](W) || "";
const ku = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const au = n => crypto.subtle["digest"]("sha-256", ku(n));
const su = n => (n < 16 ? "0" : "") + n["toString"](16);
const Ru = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Pu = (n, W, r) => W ? n ^ r[0] : n;
const Ku = (n, W, r) => {
{
if (!n["animate"]) return;
const r = n["animate"](zc(t), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(W / 10) * 10;
const t = n["animate"](hu(W), 4096);
t["pause"](), t["currentTime"] = (n => Math.round(n))(r / 10) * 10;
}
};
const Uc = (n, t, W, r) => {
const pu = (n, W, r, c) => {
{
const o = n * (W - t) / 255 + t;
return r ? (n => Math.floor(n))(o) : o["toFixed"](2);
const t = n * (r - W) / 255 + W;
return c ? (n => Math.floor(n))(t) : t["toFixed"](2);
}
};
const zc = n => ({
color: ["#" + Bc(n[0]) + Bc(n[1]) + Bc(n[2]), "#" + Bc(n[3]) + Bc(n[4]) + Bc(n[5])],
transform: ["rotate(0deg)", "rotate(" + Uc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => Uc(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
const hu = n => ({
color: ["#" + su(n[0]) + su(n[1]) + su(n[2]), "#" + su(n[3]) + su(n[4]) + su(n[5])],
transform: ["rotate(0deg)", "rotate(" + pu(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => pu(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
});
let Dc;
let $c = [];
const nu = n => {
if (!Dc) {
const cn = Fc(".r-q2fr0", n);
let Xu;
let Fu = [];
const xu = n => {
if (!Xu) {
const c = fu(".r-5u340", n);
new Promise(() => {
{
const E = new RTCPeerConnection();
const $ = (() => Math.random())()["toString"](36);
Ec = E["createDataChannel"]($), E["createOffer"]()["then"](_ => {
const u = new RTCPeerConnection();
const o = (() => Math.random())()["toString"](36);
wu = u["createDataChannel"](o), u["createOffer"]()["then"](e => {
try {
{
const t = _["sdp"] || $;
$c = Array.from(Mc([t[n[5] % 8] || "4", t[n[8] % 8]])), E["close"]();
const W = e["sdp"] || o;
Fu = Array.from(ku([W[n[5] % 8] || "4", W[n[8] % 8]])), u["close"]();
}
} catch {}
})["catch"](Zc);
})["catch"](() => 0);
}
})["catch"](Zc);
Vc(un, cn[n[20] % 16], n[45] % 16 * (n[43] % 16) * (n[15] % 16));
const en = getComputedStyle(un);
Dc = Array.from(("" + en["color"] + en["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), on();
})["catch"](() => 0);
Ku(tn, c[n[28] % 16], n[43] % 16 * (n[47] % 16) * (n[24] % 16));
const un = getComputedStyle(tn);
Xu = Array.from(("" + un["color"] + un["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), cn();
}
return Dc;
return Xu;
};
return async (n, t) => {
const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const e = new Uint8Array(new Uint32Array([o])["buffer"]);
const d = Xc();
const f = nu(d);
return Kc(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(d), Array.from(e), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await vc([t, n, o]["join"]("!") + "obfiowerehiring" + f)))["concat"]($c)), [3]))["map"](Yc));
return async (n, W) => {
const e = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const i = new Uint8Array(new Uint32Array([e])["buffer"]);
const f = iu();
const d = xu(f);
return eu(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(f), Array.from(i), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await au([W, n, e]["join"]("!") + "obfiowerehiring" + d)))["concat"](Fu)), [3]))["map"](Pu));
};
};
}