Userscript no longer works because JSON.parse can't be hooked.
Tip
Check out the new decompiler: https://krunkscript-decompiler.netlify.app/
- Outputs almost 100% identical KrunkScript syntax
- Infers types through constraint propagation and data flow analysis
- Install Tampermonkey for your browser.
- Add the userscript.
- Extract, deobfuscate and beautify compiled KrunkScript when you join a map with scripts.
- Online deobfuscator: https://krunkscript-deobfuscator.netlify.app
- Read/modify global variables.
- Access everything from
GAME
. - Inject own actions.
- Join a map with scripts
- Use a chromium based browser
- Open the developer console (F12)
- Execute
queryObjects(Function.prototype)
(this may take a while) - Right-click on the resulting array and select "Store as global variable"
- Execute
temp1.find(f=>f.name==='V_start')
- Click on the function to see the whole script in the sources tab