Hi team,
For my personal projects using vanilla JS, I always obfuscate scripts to prevent client-side tampering via the inspect panel—it works well.
While working with Chrome extensions, I noticed that key scripts (even background ones) are easily accessible. Frameworks like React or Vue naturally obfuscate most of the UI and logic, but vanilla JS doesn’t get that benefit.
I tested using obfuscated JS in local extension development, and it worked flawlessly. That said, I’m aware Google currently rejects extensions with obfuscated code at submission.
Could there be a future approach where developers place original scripts in a src folder for review, and post-approval, the reviewed code is obfuscated into a dist folder for public release? This could preserve extension integrity and discourage misuse.
Thoughts?
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/675fbc0e-6d7a-4617-ab2c-3abf3a6c6f58n%40chromium.org.