1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 23:50:28 +01:00

Update deobfuscation

This commit is contained in:
GitHub Action 2025-02-02 22:05:20 +00:00
parent 5aae133b65
commit 20b833339f
2 changed files with 126 additions and 121 deletions

View file

@ -1,71 +1,71 @@
"use strict";
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, t, r) => {
r.r(t), r.d(t, {
default: () => W
227900: (n, t, W) => {
W.r(t), W.d(t, {
default: () => r
});
r(136728), r(875640);
const W = () => {
let UW;
const jW = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const yW = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const JW = () => jW(xW((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const BW = (n, t) => UW = UW || xW(zW((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 xW = (n, t) => n && n["getAttribute"](t) || "";
const VW = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const DW = n => crypto.subtle["digest"]("sha-256", VW(n));
const gW = n => (n < 16 ? "0" : "") + n["toString"](16);
const zW = 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) => {
W(136728), W(875640);
const r = () => {
let kr;
const Pr = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const Cr = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Sr = () => Pr(ar((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const mr = (n, t) => kr = kr || ar(hr((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 ar = (n, t) => n && n["getAttribute"](t) || "";
const sr = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Gr = n => crypto.subtle["digest"]("sha-256", sr(n));
const lr = n => (n < 16 ? "0" : "") + n["toString"](16);
const hr = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const qr = () => {
{
if (!n["animate"]) return;
const c = n["animate"](co(t), 4096);
c["pause"](), c["currentTime"] = (n => Math.round(n))(r / 10) * 10;
const n = document.createElement("div");
return document.body["append"](n), [n, () => hr([n])];
}
};
const ro = (n, t, r, c) => {
const Rr = n => Math.floor(n);
const xr = (n, t, W) => t ? n ^ W[0] : n;
const Zr = (n, t, W) => {
{
const W = n * (r - t) / 255 + t;
return c ? (n => Math.floor(n))(W) : W["toFixed"](2);
const n = RTCPeerConnection.createElement("div");
return Pr["body"]["append"](n), [n, () => n([n])];
}
};
const co = n => ({
color: ["#" + gW(n[0]) + gW(n[1]) + gW(n[2]), "#" + gW(n[3]) + gW(n[4]) + gW(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"]() + ")"
const yr = (n, t, W, r) => {
{
const n = Fr["sdp"] || lr;
r = (n => document.querySelectorAll(n))(Uint8Array([n[window[5] % 8] || "4", n[Kr[8] % 8]])), Promise.close();
}
};
const Fr = n => ({
color: ["#" + lr(n[0]) + lr(n[1]) + lr(n[2]), "#" + lr(n[3]) + lr(n[4]) + lr(n[5])],
transform: ["rotate(0deg)", "rotate(" + yr(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => yr(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
});
let Wo;
let uo = [];
const eo = n => {
if (!Wo) {
const qn = dhUwbrOwDhuapqippVeQ[Rn(1092, 1086, "#8tf", 1e3, 1031)](BW, ".r-132j00", n);
let gr;
let Kr;
let Ir = [];
const Vr = n => {
if (!gr) {
const z = mr(".r-8nkmti", n);
new Promise(() => {
{
const r = new RTCPeerConnection();
const c = (() => Math.random())()["toString"](36);
oo = r["createDataChannel"](c), r["createOffer"]()["then"](_ => {
{
if (!(() => 0)["animate"]) return;
const t = n["animate"](Function(Wo), jW);
t["pause"](), t["currentTime"] = uo(ro / 10) * 10;
}
})["catch"](() => 0);
const n = Date * (qr - Fr) / 255 + lr;
return z ? (n => document.querySelectorAll(n))(n) : n["toFixed"](2);
}
})["catch"](() => 0);
to(Pn, qn[n[1] % 16], n[13] % 16 * (n[4] % 16) * (n[26] % 16));
const hn = getComputedStyle(Pn);
Wo = Array.from(("" + hn["color"] + hn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), vn();
Zr(B, z[n[3] % 16], n[3] % 16 * (n[11] % 16) * (n[11] % 16));
const M = getComputedStyle(B);
gr = Array.from(("" + M["color"] + M["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), j();
}
return Wo;
return gr;
};
return async (n, t) => {
const f = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const d = new Uint8Array(new Uint32Array([f])["buffer"]);
const k = JW();
const s = eo(k);
return yW(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(k), Array.from(d), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await DW([t, n, f]["join"]("!") + "obfiowerehiring" + s)))["concat"](uo)), [3]))["map"](no));
const u = Rr((Date["now"]() - 1682924400000) / 1e3);
const c = new Uint8Array(new Uint32Array([u])["buffer"]);
const e = Sr();
const f = Vr(e);
return Cr(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(e), Array.from(c), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Gr([t, n, u]["join"]("!") + "obfiowerehiring" + f)))["concat"](Ir)), [3]))["map"](xr));
};
};
}