Customising CyberChef…

So, in the need to run some Base64 encoding + decoding using local HTML files and modern browser-based JS, I came across CyberChef

Asking Google’s “AI Mode” (even the “Pro” version) to provide instructions to strip the files down to the basic (e.g. no bloat from Tesseract OCR files or other operations/modules not needed excepting “To Base64” and “From Base64” operations) was an exercise in frustration… With “instructions” from deleting .mjs operation files from source tree, to editing the src/core/config/scripts/generateConfig.mjs (in truth, only one or the other was required – along with some other steps), to attempting hard-code edits on webpack.config.js.

None of that worked correctly – No HTML was produced at the end due to some compilation error.

Fortunately, it pointed me in the right direction, and I finally managed to “shrink” my build for easy transfer, down from the hefty 70+MB .zip file…

Continue reading