Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.
JavaScript
Tree: 3dfc14d923

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Readme.md
index.js
package.json
test.js

Readme.md

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(...)

License

Licensed under the MIT license.

Something went wrong with that request. Please try again.