Control Globals and functions renaming
See original GitHub issueI’m a little confused with the readme file. If I use the renameGlobals=true parameter, it renames globals, and functions. ok. If I have a function that is called from another script, the call is broken. ok. So I have to exclude it from the renaming list with reservedNames. ok.
The problem is that doing this, it is not obfuscated. Is there a way so I can rename it, at obfuscation, without touching the source code ?
For example, saying that this string THISFUNCTION, should always be renamed with this TiHiIiSiFiUiNiCiTiIiOiN or with ghfdffgfhdfjghdfgjdsfhgf when obfuscated. This way, when I obfuscate any script, I can keep the function call by maintaining some coherence. Same thing for globals.
note that THISFUNCTION can be a function name, and of course a string corresponding to a javascript call.
SCRIPT 1 : function THISFUNCTION() {}
SCRIPT 2 : <input type='button' onclick='THISFUNCTION();' />
Issue Analytics
- State:
- Created 3 years ago
- Comments:51 (46 by maintainers)
Top GitHub Comments
I will implement names cache (that writes into the file) in the future (like uglify.js does) but i haven’t any date. Sometime in next year.
Thank you for testing. Probably from tomorrow and all this and partially next week I won’t be able to finish this PR, because of my vacation. I’ll finish in a week.