mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Updated a few more things
This commit is contained in:
parent
c827e9f7e1
commit
73cdcb3186
47 changed files with 35805 additions and 1102 deletions
11
lib/js/eval.js
Normal file
11
lib/js/eval.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const { Syntax } = require('./esotope');
|
||||
const { createCallExpression, createIdentifier } = require('./node-builder');
|
||||
|
||||
module.exports = {
|
||||
type: Syntax.CallExpression,
|
||||
condition: node => node.callee.type == 'Identifier' && node.callee.name == 'eval' && node.arguments.length,
|
||||
run: node => {
|
||||
node.arguments[0] = createCallExpression(createIdentifier('__processScript'), [ node.arguments[0] ]);
|
||||
return true;
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue