1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 23:50:28 +01:00
This commit is contained in:
GitHub Action 2024-12-31 22:05:39 +00:00
parent 3d4881cfcf
commit 7bb7a60025
3 changed files with 111 additions and 122 deletions

View file

@ -1,103 +1,93 @@
"use strict"; "use strict";
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
471269: (n, W, t) => { 471269: (n, t, r) => {
t.r(W), t.d(W, { r.r(t), r.d(t, {
default: () => o default: () => u
}); });
t(136728), t(875640); r(136728), r(875640);
const o = () => { const u = () => {
const [Yr, jr] = [document, window], const [NW, gW] = [document, window],
[Ar, zr, Er, $r, _r, no, Wo, to, co, ro, oo, uo, eo] = [jr["Number"], jr["TextEncoder"], jr["Uint8Array"], n => Yr["querySelectorAll"](n), jr["Date"], jr["Uint32Array"], jr["crypto"]["subtle"], jr["Array"]["from"], jr["Math"], jr["RTCPeerConnection"], jr["Promise"], jr["Function"], jr["getComputedStyle"]]; [XW, yW, bW, TW, wW, FW, IW, zW, BW, ZW, MW, VW, DW] = [gW["Number"], gW["TextEncoder"], gW["Uint8Array"], n => NW["querySelectorAll"](n), gW["Date"], gW["Uint32Array"], gW["crypto"]["subtle"], gW["Array"]["from"], gW["Math"], gW["RTCPeerConnection"], gW["Promise"], gW["Function"], gW["getComputedStyle"]];
let fo; let LW;
const io = n => new Er(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))), const jW = n => new bW(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))),
ko = n => btoa(to(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), UW = n => btoa(zW(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
Co = () => io(mo($r("[name^=tw]")[0], "content")), AW = () => jW(YW(TW("[name^=tw]")[0], "content")),
ao = (n, W) => fo = fo || mo(So($r(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Ar)), EW = (n, t) => LW = LW || YW(rc(TW(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](XW)),
mo = (n, W) => n && n["getAttribute"](W) || "", YW = (n, t) => n && n["getAttribute"](t) || "",
Oo = n => typeof n == "string" ? new zr()["encode"](n) : n, _W = n => typeof n == "string" ? new yW()["encode"](n) : n,
Ro = n => Wo["digest"]("sha-256", Oo(n)), $W = n => IW["digest"]("sha-256", _W(n)),
No = n => (n < 16 ? "0" : "") + n["toString"](16), nc = n => (n < 16 ? "0" : "") + n["toString"](16),
So = n => to(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), tc = (n, t) => XW["parseInt"](n, t),
so = () => { rc = n => zW(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
Wc = () => {
{ {
const n = Yr[(d = 757, f = "5q5H", Xr(0, d - 965, 0, 0, f) + "eElem" + "ent")]("div"); const W = NW["createElement"]("div");
return Yr["body"]["append"](n), [n, () => So([n])]; return NW["body"][(f = "HOH1", a = 377, k = 336, Qc(a - -133, f - 241, f, a - 394, k - 38) + "d")](W), [W, () => rc([W])];
} }
try { try {
const n = jr["sdp"] || Ar; const n = tc["sdp"] || NW;
Io = To(zr([n[ao[5] % 8] || "4", n[to[8] % 8]])), Oo["close"](); hc = ec(oc([n[YW[5] % 8] || "4", n[AW[8] % 8]])), MW["close"]();
} catch {} } catch {}
var d, f; var f, a, k;
}, },
[Ho, Qo, po, qo, Jo] = [n => co["round"](n), n => co["floor"](n), () => co["random"](), n => n["slice"](0, 16), () => 0], [cc, uc, oc, ec, dc] = [n => BW["round"](n), n => BW["floor"](n), () => BW["random"](), n => n["slice"](0, 16), () => 0],
[yo, Po, ho] = [3, 1682924400, 2 ** (4 * 3)], [ic, fc, ac] = [3, 1682924400, 2 ** (4 * 3)],
To = (n, W, t) => W ? n ^ t[0] : n, kc = (n, t, r) => t ? n ^ r[0] : n,
Io = (n, W, t) => { mc = (n, t, r) => {
{ {
if (!n["animate"]) return; if (!n["animate"]) return;
const c = n["animate"](Go(W), ho); const W = n["animate"](Sc(t), ac);
c["pause"](), c["currentTime"] = Ho(t / 10) * 10; W["pause"](), W["currentTime"] = cc(r / 10) * 10;
} }
}, },
lo = (n, W, t, r) => { hc = (n, t, r, W) => {
{ {
const c = n * (t - W) / 255 + W; const c = n * (r - t) / 255 + t;
return r ? Qo(c) : c["toFixed"](2); return W ? uc(c) : c["toFixed"](2);
}
{
const c = new no(),
r = $r()["toString"](36);
po = c["createDataChannel"](r), c["createOffer"]()["then"](C => {
try {
const m = C["sdp"] || r;
Oo = ko(io([m[m[5] % 8] || "4", m[n[8] % 8]])), c["close"]();
} catch {}
var N, S, p;
})["catch"](Ar);
} }
}, },
Go = n => ({ Sc = n => ({
color: ["#" + No(n[0]) + No(n[1]) + No(n[2]), "#" + No(n[3]) + No(n[4]) + No(n[5])], color: ["#" + nc(n[0]) + nc(n[1]) + nc(n[2]), "#" + nc(n[3]) + nc(n[4]) + nc(n[5])],
transform: ["rotate(0deg)", "rotate(" + lo(n[6], 60, 360, !0) + "deg)"], transform: ["rotate(0deg)", "rotate(" + hc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + to(n["slice"](7))["map"]((n, W) => lo(n, W % 2 ? -1 : 0, 1))["join"]() + ")" easing: "cubic-bezier(" + zW(n["slice"](7))["map"]((n, t) => hc(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let xo, let qc,
Zo, sc,
Vo = []; vc = [];
const Fo = n => { const Rc = n => {
if (!xo) { if (!qc) {
const [W, t] = [n[21] % 16, n[25] % 16 * (n[26] % 16) * (n[43] % 16)], const [t, r] = [n[30] % 16, n[41] % 16 * (n[18] % 16) * (n[6] % 16)],
O = ao(".r-5hgb9c", n); sn = EW(".r-4t1nc0", n);
new oo(() => { new MW(() => {
{ {
const c = new ro(), const c = new ZW(),
r = po()["toString"](36); u = oc()["toString"](36);
Zo = c["createDataChannel"](r), c["createOffer"]()["then"](o => { sc = c["createDataChannel"](u), c["createOffer"]()["then"](o => {
try { try {
{ {
const W = o["sdp"] || r; const t = o["sdp"] || u;
Vo = to(Oo([W[n[5] % 8] || "4", W[n[8] % 8]])), c["close"](); vc = zW(_W([t[n[5] % 8] || "4", t[n[8] % 8]])), c["close"]();
} }
} catch {} } catch {}
})["catch"](Jo); })["catch"](dc);
} }
})["catch"](Jo); })["catch"](dc);
const [R, N] = so(); const [vn, Rn] = Wc();
Io(R, O[W], t); mc(vn, sn[t], r);
const S = eo(R); const Qn = DW(vn);
xo = to(("" + S["color"] + S["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Ar(Ar(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), N(); qc = zW(("" + Qn["color"] + Qn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => XW(XW(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Rn();
} }
return xo; return qc;
}; };
return async (n, W) => { return async (n, t) => {
const e = Qo((_r["now"]() - Po * 1e3) / 1e3), const o = uc((wW["now"]() - fc * 1e3) / 1e3),
d = new Er(new no([e])["buffer"]), e = new bW(new FW([o])["buffer"]),
f = Co(), d = AW(),
i = Fo(f); i = Rc(d);
return ko(new Er([po() * 256]["concat"](to(f), to(d), qo(to(new Er(await Ro([W, n, e]["join"]("!") + "obfiowerehiring" + i)))["concat"](Vo)), [yo]))["map"](To)); return UW(new bW([oc() * 256]["concat"](zW(d), zW(e), ec(zW(new bW(await $W([t, n, o]["join"]("!") + "obfiowerehiring" + i)))["concat"](vc)), [ic]))["map"](kc));
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.4f887fea.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.2c9f8eea.js.map

View file

@ -1,73 +1,72 @@
"use strict"; "use strict";
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
471269: (n, W, t) => { 471269: (n, t, r) => {
t.r(W), t.d(W, { r.r(t), r.d(t, {
default: () => o default: () => u
}); });
t(136728), t(875640); r(136728), r(875640);
const o = () => { const u = () => {
let fo; let LW;
const io = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); const jW = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const ko = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const UW = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
const Co = () => io(mo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content")); const AW = () => jW(YW((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
const ao = (n, W) => fo = fo || mo(So((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 EW = (n, t) => LW = LW || YW(rc((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 mo = (n, W) => n && n["getAttribute"](W) || ""; const YW = (n, t) => n && n["getAttribute"](t) || "";
const Oo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const _W = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Ro = n => crypto.subtle["digest"]("sha-256", Oo(n)); const $W = n => crypto.subtle["digest"]("sha-256", _W(n));
const No = n => (n < 16 ? "0" : "") + n["toString"](16); const nc = n => (n < 16 ? "0" : "") + n["toString"](16);
const So = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); const rc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const po = () => Math.random(); const kc = (n, t, r) => t ? n ^ r[0] : n;
const To = (n, W, t) => W ? n ^ t[0] : n; const mc = (n, t, r) => {
const Io = (n, W, t) => {
{ {
if (!n["animate"]) return; if (!n["animate"]) return;
const c = n["animate"](Go(W), 4096); const W = n["animate"](Sc(t), 4096);
c["pause"](), c["currentTime"] = (n => Math.round(n))(t / 10) * 10; W["pause"](), W["currentTime"] = (n => Math.round(n))(r / 10) * 10;
} }
}; };
const lo = (n, W, t, r) => { const hc = (n, t, r, W) => {
{ {
const c = n * (t - W) / 255 + W; const c = n * (r - t) / 255 + t;
return r ? (n => Math.floor(n))(c) : c["toFixed"](2); return W ? (n => Math.floor(n))(c) : c["toFixed"](2);
} }
}; };
const Go = n => ({ const Sc = n => ({
color: ["#" + No(n[0]) + No(n[1]) + No(n[2]), "#" + No(n[3]) + No(n[4]) + No(n[5])], color: ["#" + nc(n[0]) + nc(n[1]) + nc(n[2]), "#" + nc(n[3]) + nc(n[4]) + nc(n[5])],
transform: ["rotate(0deg)", "rotate(" + lo(n[6], 60, 360, !0) + "deg)"], transform: ["rotate(0deg)", "rotate(" + hc(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => lo(n, W % 2 ? -1 : 0, 1))["join"]() + ")" easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => hc(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let xo; let qc;
let Vo = []; let vc = [];
const Fo = n => { const Rc = n => {
if (!xo) { if (!qc) {
const O = ao(".r-5hgb9c", n); const sn = EW(".r-4t1nc0", n);
new Promise(() => { new Promise(() => {
{ {
const c = new RTCPeerConnection(); const c = new RTCPeerConnection();
const r = po()["toString"](36); const u = (() => Math.random())()["toString"](36);
Zo = c["createDataChannel"](r), c["createOffer"]()["then"](o => { sc = c["createDataChannel"](u), c["createOffer"]()["then"](o => {
try { try {
{ {
const W = o["sdp"] || r; const t = o["sdp"] || u;
Vo = Array.from(Oo([W[n[5] % 8] || "4", W[n[8] % 8]])), c["close"](); vc = Array.from(_W([t[n[5] % 8] || "4", t[n[8] % 8]])), c["close"]();
} }
} catch {} } catch {}
})["catch"](() => 0); })["catch"](() => 0);
} }
})["catch"](() => 0); })["catch"](() => 0);
Io(R, O[n[21] % 16], n[25] % 16 * (n[26] % 16) * (n[43] % 16)); mc(vn, sn[n[30] % 16], n[41] % 16 * (n[18] % 16) * (n[6] % 16));
const S = getComputedStyle(R); const Qn = getComputedStyle(vn);
xo = Array.from(("" + S["color"] + S["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), N(); qc = Array.from(("" + Qn["color"] + Qn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), Rn();
} }
return xo; return qc;
}; };
return async (n, W) => { return async (n, t) => {
const e = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const d = new Uint8Array(new Uint32Array([e])["buffer"]); const e = new Uint8Array(new Uint32Array([o])["buffer"]);
const f = Co(); const d = AW();
const i = Fo(f); const i = Rc(d);
return ko(new Uint8Array([po() * 256]["concat"](Array.from(f), Array.from(d), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Ro([W, n, e]["join"]("!") + "obfiowerehiring" + i)))["concat"](Vo)), [3]))["map"](To)); return UW(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(d), Array.from(e), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await $W([t, n, o]["join"]("!") + "obfiowerehiring" + i)))["concat"](vc)), [3]))["map"](kc));
}; };
}; };
} }

File diff suppressed because one or more lines are too long