Help and tips
-
How to optimize and obfuscate script?
-
- Open the script
- Right-click the code
- Select "Script optimizer -> Optimize/obfuscate"
- Read optimization report
- Done! Script is optimized now
-
How to optimize and obfuscate selected code?
-
- Open the script or web-page
- Select one or more functions
- Right-click selected code
- Choose "Script optimizer -> Optimize/obfuscate selected"
- Read optimization report
- Done! Selected code is optimized
-
How about useful advices?
-
- Always backup your scripts before optimization/obfuscation.
Remember: nobody can de-obfuscate obfuscated script, even author of TrickyScripter
- Always test your scripts before and after optimization.
- Don't try to optimize broken scripts.
- Don't include HTML comments before (<!--) and after (-->) code in your scripts.
- Carefully select code when optimizing part of code.
Selected code must include the same number of open and closed brackets, quotes etc.
- It is recommended to select whole functions, not just parts of code.
- Minimize use of
eval(), setTimeout(), setInterval() and conditional compilation
instructions in functions.
- Try to use less global code and more functions. Only local variables can be obfuscated.
- Use Unix like line breaks and save 1 byte per code line!
To configure Dreamweaver properly: Edit --> Preferences... --> Code Format --> Line break type --> LF (Unix)