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:
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue