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

fix deobf

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2025-01-26 14:06:00 +09:00
parent 12d5545e19
commit 93e64a1b9e
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA

View file

@ -556,6 +556,9 @@ const objDeobfMemberExpr = {
key = node.property.value; key = node.property.value;
} }
let value = map[key]; let value = map[key];
if (value === undefined) {
return;
}
if (value.type == "StringLiteral") { if (value.type == "StringLiteral") {
path.replaceWith(value); path.replaceWith(value);
return; return;
@ -593,6 +596,9 @@ const objDeobfMemberExpr = {
key = node.callee.property.value; key = node.callee.property.value;
} }
let value = map[key]; let value = map[key];
if (value === undefined) {
return;
}
// ! replace functions // ! replace functions
let retNode = value.body.body[0].argument; let retNode = value.body.body[0].argument;
// ! call expression // ! call expression
@ -635,7 +641,6 @@ const objDeobfMemberExpr = {
function evalValue(left, right, op) { function evalValue(left, right, op) {
switch (op) { switch (op) {
case "===": case "===":
return left == right;
case "!==": case "!==":
return left != right; return left != right;
} }