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-04-03 22:06:09 +00:00
parent 25c46f5802
commit f31a88e4b2
2 changed files with 114 additions and 124 deletions

View file

@ -1,70 +1,56 @@
"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, W, c) => {
c.r(W), c.d(W, {
default: () => o
});
W(136728), W(875640);
c(136728), c(875640);
const o = () => {
let tc;
const rc = n => new Kr["Uint8Array"](atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const cc = n => btoa(Kr["Array"]["from"](n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const uc = () => rc(fc((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const ec = (n, t) => tc = tc || fc(Sc((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"](Kr["Number"]));
const fc = (n, t) => n && n["getAttribute"](t) || "";
const dc = n => typeof n == "string" ? new Kr["TextEncoder"]()["encode"](n) : n;
const ic = n => Kr["crypto"]["subtle"]["digest"]("sha-256", dc(n));
const mc = n => (n < 16 ? "0" : "") + n["toString"](16);
const kc = (n, t) => Kr["Number"]["parseInt"](n, t);
const Sc = n => Kr["Array"]["from"](n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const pc = (n, t, W) => t ? n ^ W[0] : n;
const Pc = (n, t, W) => {
let Wt;
const ct = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const rt = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const tt = () => ct(ut((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const ot = (n, W) => Wt = Wt || ut(it((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 ut = (n, W) => n && n["getAttribute"](W) || "";
const et = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const dt = n => crypto.subtle["digest"]("sha-256", et(n));
const it = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const Rt = (n, W, c) => W ? n ^ c[0] : n;
const pt = (n, W, c) => {
{
const n = (n => Kr["Math"]["round"](n))["sdp"] || wc;
Kr = 1682924400(3([n[Qc[5] % 8] || "4", n[kc[8] % 8]])), document.close();
const n = (() => 0) * (4096 - RTCPeerConnection) / 255 + Uint32Array;
return c ? (() => Math.random())(n) : n[O = -107, s = "^OTP", gr(0, O - -1417, 0, s) + "ed"](2);
}
};
const Qc = (n, t, W, o) => {
try {
const n = gc["sdp"] || Kr["Uint32Array"];
o = tc(Kr["Number"]([n[fc[5] % 8] || "4", n[Kr["RTCPeerConnection"][8] % 8]])), (n => n["slice"](0, 16))["close"]();
} catch {}
};
const wc = n => ({
color: ["#" + mc(n[0]) + mc(n[1]) + mc(n[2]), "#" + mc(n[3]) + mc(n[4]) + mc(n[5])],
transform: ["rotate(0deg)", "rotate(" + Qc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Kr["Array"]["from"](n["slice"](7))["map"]((n, t) => Qc(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
});
let Jc;
let gc = [];
const Mc = n => {
if (!Jc) {
const o = ec(".r-1le60", n);
new Kr["Promise"](() => {
let lt;
let qt = [];
const ht = n => {
if (!lt) {
const Mn = ot(".r-1xc71g", n);
new Promise(() => {
{
const t = new Kr["RTCPeerConnection"]();
const W = (() => Kr["Math"]["random"]())()["toString"](36);
Rc = t["createDataChannel"](W), t["createOffer"]()["then"](o => {
const c = new RTCPeerConnection();
const t = (() => Math.random())()["toString"](36);
Lt = c["createDataChannel"](t), c["createOffer"]()["then"](o => {
{
const n = (() => 0) * (rc - (n => Kr["Math"]["round"](n))) / 255 + wc;
return Kr ? 1682924400(n) : n["toFixed"](2);
return;
}
})["catch"](() => 0);
}
})["catch"](() => 0);
Pc(Kn, o[n[34] % 16], n[25] % 16 * (n[16] % 16) * (n[45] % 16));
const En = Kr["getComputedStyle"](Kn);
Jc = Kr["Array"]["from"](("" + En["color"] + En["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Kr["Number"](Kr["Number"](n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), bn();
pt($n, Mn[n[15] % 16], n[42] % 16 * (n[45] % 16) * (n[43] % 16));
const oW = getComputedStyle($n);
lt = Array.from(("" + oW["color"] + oW["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), _n();
}
return Jc;
return lt;
};
return async (n, t) => {
const f = (n => Kr["Math"]["floor"](n))((Kr["Date"]["now"]() - 1682924400000) / 1e3);
const d = new Kr["Uint8Array"](new Kr["Uint32Array"]([f])["buffer"]);
const i = uc();
const m = Mc(i);
return cc(new Kr["Uint8Array"]([(() => Kr["Math"]["random"]())() * 256]["concat"](Kr["Array"]["from"](i), Kr["Array"]["from"](d), (n => n["slice"](0, 16))(Kr["Array"]["from"](new Kr["Uint8Array"](await ic([t, n, f]["join"]("!") + "obfiowerehiring" + m)))["concat"](gc)), [3]))["map"](pc));
return async (n, W) => {
const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const u = new Uint8Array(new Uint32Array([o])["buffer"]);
const e = tt();
const d = ht(e);
return rt(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(e), Array.from(u), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await dt([W, n, o]["join"]("!") + "obfiowerehiring" + d)))["concat"](qt)), [3]))["map"](Rt));
};
};
}