active-x-obfuscator

A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.

2 个版本
安装
npm install active-x-obfuscator
yarn add active-x-obfuscator
pnpm add active-x-obfuscator
bun add active-x-obfuscator
README

active-x-obfuscator

A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.

Why?

Some corporate firewalls /proxies such as Blue Coat block JavaScript files to be downloaded if they contain the word 'ActiveX'. That of course is very annoying for libraries such as socket.io that need to use ActiveXObject for supporting IE8 and older.

Install

npm install active-x-obfuscator

Usage

var activeXObfuscator = require('active-x-obfuscator');
var code = 'foo(new ActiveXObject());';

var obfuscated = activeXObfuscator(code);
// -> foo(new window[(['Active'].concat('Object').join('X'))])

License

Licensed under the MIT license.

版本列表
0.0.2 2013-06-19
0.0.1 2012-02-28