1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 07:30:38 +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;
}
let value = map[key];
if (value === undefined) {
return;
}
if (value.type == "StringLiteral") {
path.replaceWith(value);
return;
@ -593,6 +596,9 @@ const objDeobfMemberExpr = {
key = node.callee.property.value;
}
let value = map[key];
if (value === undefined) {
return;
}
// ! replace functions
let retNode = value.body.body[0].argument;
// ! call expression
@ -635,7 +641,6 @@ const objDeobfMemberExpr = {
function evalValue(left, right, op) {
switch (op) {
case "===":
return left == right;
case "!==":
return left != right;
}