promotional bannermobile promotional banner

JSFuck for KubeJS

Add full JSFuck support to KubeJS

overview

JSFuck is an esoteric JavaScript programming style whose core characteristic is that it uses only the six characters [, ], (, ), !, and + to write arbitrary JavaScript code, and it requires no special compiler or interpreter—it runs directly on a native JavaScript engine. However, the Rhino engine used by KubeJS does not support full JSFuck.

Use

  1. Go to the JSFuck encoder and enter your KubeJS code, e.g. console.info("JSFuck loaded"). Check Eval Source.

  2. Save the encoded output as kubejs/startup_scripts/hello.js, then restart and check the output in the KubeJS startup log. Server event scripts and client scripts go in the corresponding server_scripts and client_scripts directories as usual.

Supports the official encoder as well as the historical at, flat, fill, and filter wrappers. When Run In Parent Scope is enabled, save the full six-character output as a separate script; the top-level declarations decoded from it enter the current KubeJS global scope. The original script uses KubeJS APIs and JavaScript syntax supported by Rhino.

JSFuck for KubeJS Team

profile avatar
  • 8
    Projects
  • 4.5K
    Downloads

More from xianyu_miaoView all