1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 15:40:28 +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-05-21 22:06:11 +00:00
parent 910146a564
commit 7eb5cccd8e
5 changed files with 220 additions and 263 deletions

View file

@ -1,78 +1,74 @@
"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, {
227900: (n, r, t) => {
t.r(r), t.d(r, {
default: () => c
});
W(136728), W(875640);
t(136728), t(875640);
const c = () => {
let Ru;
const qu = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Pu = () => {
return n = Lu((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
};
const Ou = (n, t) => Ru = Ru || Lu(pu((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 Lu = (n, t) => n && n["getAttribute"](t) || "";
const Nu = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Qu = n => crypto.subtle["digest"]("sha-256", Nu(n));
const hu = n => (n < 16 ? "0" : "") + n["toString"](16);
const pu = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Tu = (n, t, W) => t ? n ^ W[0] : n;
const xu = (n, t, W) => {
const c = {
"hpntw": "div"
};
let No;
const Ho = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const Lo = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Fo = () => Ho(bo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const yo = (n, r) => No = No || bo(Ao((n => document.querySelectorAll(n))(n))[r[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number));
const bo = (n, r) => n && n["getAttribute"](r) || "";
const jo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const zo = n => crypto.subtle["digest"]("sha-256", jo(n));
const To = n => (n < 16 ? "0" : "") + n["toString"](16);
const Ao = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const _o = (n, r, t) => r ? n ^ t[0] : n;
const nc = (n, r, t) => {
{
if (!n["animate"]) return;
const r = n["animate"](Du(t), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(W / 10) * 10;
const W = n["animate"](tc(r), 4096);
W["pause"](), W["currentTime"] = (n => Math.round(n))(t / 10) * 10;
}
};
const Au = (n, t, W, r) => {
const rc = (n, r, t, W) => {
{
const c = n * (W - t) / 255 + t;
return r ? (n => Math.floor(n))(c) : c["toFixed"](2);
const o = n * (t - r) / 255 + r;
return W ? (n => Math.floor(n))(o) : o["toFixed"](2);
}
};
const Du = n => ({
color: ["#" + hu(n[0]) + hu(n[1]) + hu(n[2]), "#" + hu(n[3]) + hu(n[4]) + hu(n[5])],
transform: ["rotate(0deg)", "rotate(" + Au(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => Au(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
const tc = n => ({
color: ["#" + To(n[0]) + To(n[1]) + To(n[2]), "#" + To(n[3]) + To(n[4]) + To(n[5])],
transform: ["rotate(0deg)", "rotate(" + rc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, r) => rc(n, r % 2 ? -1 : 0, 1))["join"]() + ")"
});
let bu;
let wu = [];
const Zu = n => {
if (!bu) {
const g = n[6] % 16;
const T = n[20] % 16 * (n[44] % 16) * (n[37] % 16);
const x = Ou(".r-awq2hi", n);
new Su(() => {
let Wc;
let cc = [];
const ec = n => {
if (!Wc) {
const hn = n[22] % 16;
const In = n[35] % 16 * (n[23] % 16) * (n[16] % 16);
const xn = yo(".r-732710", n);
new Promise(() => {
{
const I = new RTCPeerConnection();
const F = (() => Math.random())()["toString"](36);
Yu = I["createDataChannel"](F), I["createOffer"]()["then"](Y => {
const r = new RTCPeerConnection();
const t = (() => Math.random())()["toString"](36);
oc = r["createDataChannel"](t), r["createOffer"]()["then"](W => {
try {
{
const t = Y["sdp"] || F;
wu = Array.from(Nu([t[n[5] % 8] || "4", t[n[8] % 8]])), I["close"]();
const o = W["sdp"] || t;
cc = Array.from(jo([o[n[5] % 8] || "4", o[n[8] % 8]])), r["close"]();
}
} catch {}
})["catch"](() => 0);
}
})["catch"](() => 0);
xu(A, x[n[6] % 16], n[20] % 16 * (n[44] % 16) * (n[37] % 16));
const b = getComputedStyle(A);
bu = Array.from(("" + b["color"] + b["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), D();
nc(Qn, xn[n[22] % 16], n[35] % 16 * (n[23] % 16) * (n[16] % 16));
const Vn = getComputedStyle(Qn);
Wc = Array.from(("" + Vn["color"] + Vn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Nn();
}
return bu;
return Wc;
};
return async (n, t) => {
const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const e = new Uint8Array(new Uint32Array([o])["buffer"]);
const d = Pu();
const f = Zu(d);
return qu(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(d), Array.from(e), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Qu([t, n, o]["join"]("!") + "obfiowerehiring" + f)))["concat"](wu)), [3]))["map"](Tu));
return async (n, r) => {
const c = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const u = new Uint8Array(new Uint32Array([c])["buffer"]);
const e = Fo();
const f = ec(e);
return Lo(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(e), Array.from(u), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await zo([r, n, c]["join"]("!") + "obfiowerehiring" + f)))["concat"](cc)), [3]))["map"](_o));
};
};
}