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-14 22:05:53 +00:00
parent cee72f1646
commit c39a74ce99
2 changed files with 131 additions and 129 deletions

View file

@ -1,64 +1,71 @@
"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: () => o
227900: (n, W, t) => {
t.r(W), t.d(W, {
default: () => u
});
W(136728), W(875640);
const o = () => {
let lr;
const pr = 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 br = () => pr(Lr((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const hr = (n, t) => lr = lr || Lr(Xr((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 Lr = (n, t) => n && n["getAttribute"](t) || "";
const gr = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Dr = n => crypto.subtle["digest"]("sha-256", gr(n));
const Hr = n => (n < 16 ? "0" : "") + n["toString"](16);
const Xr = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Yr = (n, t, W) => t ? n ^ W[0] : n;
const $r = (n, t, W) => {
t(136728), t(875640);
const u = () => {
let cc;
const oc = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const ec = () => {
return n = fc((n => Kr["querySelectorAll"](n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
};
const dc = (n, W) => cc = cc || fc(Qc((n => Kr["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 fc = (n, W) => n && n["getAttribute"](W) || "";
const kc = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const ic = n => crypto.subtle["digest"]("sha-256", kc(n));
const ac = n => (n < 16 ? "0" : "") + n["toString"](16);
const Qc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const vc = (n, W, t) => W ? n ^ t[0] : n;
const hc = (n, W, t) => {
{
if (!n["animate"]) return;
const r = n["animate"](no(t), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(W / 10) * 10;
const r = n["animate"](Tc(W), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(t / 10) * 10;
}
};
const _r = (n, t, W, o) => {
try {
const n = lr["sdp"] || document;
to = (n => Math.round(n))(1682924400([n[TextEncoder[5] % 8] || "4", n[Array.from[8] % 8]])), gr["close"]();
} catch {}
const Pc = (n, W, t, r) => {
{
const c = n * (t - W) / 255 + W;
return r ? (n => Math.floor(n))(c) : c["toFixed"](2);
}
};
const no = n => ({
color: ["#" + Hr(n[0]) + Hr(n[1]) + Hr(n[2]), "#" + Hr(n[3]) + Hr(n[4]) + Hr(n[5])],
transform: ["rotate(0deg)", "rotate(" + _r(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => _r(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
const Tc = n => ({
color: ["#" + ac(n[0]) + ac(n[1]) + ac(n[2]), "#" + ac(n[3]) + ac(n[4]) + ac(n[5])],
transform: ["rotate(0deg)", "rotate(" + Pc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => Pc(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
});
let to;
let ro = [];
const oo = n => {
if (!to) {
const V = hr(".r-50pzgo", n);
let Oc;
let Fc = [];
const xc = n => {
if (!Oc) {
const O = dc(".r-8wczi", n);
new Promise(() => {
{
const n = (() => Math.random())["createElement"]("div");
return F["body"]["append"](n), [n, () => n([n])];
const W = new RTCPeerConnection();
const r = (() => Math.random())()["toString"](36);
wc = W["createDataChannel"](r), W["createOffer"]()["then"](t => {
{
const n = Function * (n[26] % 16 - dc) / 255 + ec;
return n ? 4096(n) : n["toFixed"](2);
}
})["catch"](() => 0);
}
})["catch"](() => 0);
$r(Q, V[n[7] % 16], n[35] % 16 * (n[6] % 16) * (n[22] % 16));
const y = getComputedStyle(Q);
to = Array.from(("" + y["color"] + y["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), F();
hc(w, O[n[26] % 16], n[10] % 16 * (n[32] % 16) * (n[0] % 16));
const y = getComputedStyle(w);
Oc = Array.from(("" + y["color"] + y["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), F();
}
return to;
return Oc;
};
return async (n, t) => {
const u = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const c = new Uint8Array(new Uint32Array([u])["buffer"]);
const e = br();
const f = oo(e);
return Jr(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(e), Array.from(c), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Dr([t, n, u]["join"]("!") + "obfiowerehiring" + f)))["concat"](ro)), [3]))["map"](Yr));
return async (n, W) => {
const e = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const d = new Uint8Array(new Uint32Array([e])["buffer"]);
const f = ec();
const k = xc(f);
return oc(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(f), Array.from(d), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await ic([W, n, e]["join"]("!") + "obfiowerehiring" + k)))["concat"](Fc)), [3]))["map"](vc));
};
};
}