Is there a JS obfuscator that can auto-exclude from renaming DOM, WebGL, and other system function names?

i could not imagine a minifier figuring out dynamic property access without some kind of very elaborate and error-prone VM. strings and variables would be bad, but it goes down the rabit hole from there.

const foo = "Object3D"
THREE[foo]

// ...

const D = () => "D"
THREE["Object3" + D()]

// ...

THREE[Math.random() > 0.5 ? "PointLight" : "SpotLight"]

The working folder has all the information required if the minifier cared to examine the code holistically.

The bundler like vitte and esbuid that should be the most reliable one to do the minification, has zero (0) excuse of not knowing… “the way you bundle your app”.

ChatGPT make this:

const r=4,w=5,s=0;for(let j=0;j<NUMBER_OF_TASKS;j++){const d=taskEstimate[j]*r,w=d/w;s+=w}

:grinning:

@ agrafikr
ChatGPT is not to be trusted for anything serious, at all.
It can only be used as an unreliable low-class consultant as a guide on the information available on the internet (up to 2021), that you could use to research the subject further.

Example:
chatbpt-1

chatgpt-2

So it lies a lot, I’ve seen this countless times, this primitive clown - “A.I” completely lacks understanding of any concept, it just mimics knowledge, by combining pieces or both reliable and unreliable information it has collected from the web, to form an answer that will match your question, and will cut corners when there is missing information, but beyond that superficial process, it doesn’t understand anything in any depth, and thus it doesn’t posses any knowledge at all.

Not to mention I had to allow scripts running on my system by changing the PoweShell policy from “Restricted” to “RemotelySigned” in order for that damn obscure Ugflify.js to function (!) - once more after a couple of years, out of curiosity in case something has changed.
Then I returned it back to “Restricted”.

Bottom line, A.I hasn’t been discovered yet.

1 Like

yes, this is not suitable for big things - but found it amazing that it is already going in the right direction.