mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
11 lines
No EOL
444 B
JavaScript
11 lines
No EOL
444 B
JavaScript
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;
|
|
},
|
|
}; |