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:
parent
12d5545e19
commit
93e64a1b9e
1 changed files with 6 additions and 1 deletions
7
deobf.js
7
deobf.js
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue