Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.js-confuser.com/llms.txt

Use this file to discover all available pages before exploring further.

Avoid undeclared variables

  • JS-Confuser only renames variables you explicitly define, but undeclared variables can still cause issues.
  • Always declare variables using var, let, or const.
  • Avoid referencing global variables directly. Use window.MyGlobalVar instead of MyGlobalVar.

Don’t rely on function.name

  • Rename Variables and related options will break this behavior. Most build tools recommend avoiding this pattern altogether.

Don’t use eval() to reference or modify local variables

If your code relies on function.length

Avoid string-based placeholders

  • If your code uses string placeholders like "COOKIE_NAME", replace them with identifiers such as COOKIE_NAME. Strings are heavily enc