#Trying to obfuscate js file

6 messages · Page 1 of 1 (latest)

proven lichen
#

Im trying to obfuscate a .js file, it has logic in it that id rather not be reversed really easily lol. Every time i try, it breaks strings and i even if i add them as reversed strings, it still breaks, Context, this is a script for a chrome extension and its reading through <div> containers with static names

red bridgeBOT
#

Hi! I'd like to help, but I need more details to give you useful feedback:

  1. Which obfuscation tool are you using? (e.g., webpack, terser, javascript-obfuscator.io, etc.)
  2. Share your code - Post the relevant snippet that's breaking, formatted in a code block
  3. What exactly breaks? - Show the error message or describe what happens when you run the obfuscated code
  4. What have you tried? - You mentioned reversed strings; what other approaches have you tested?

Once you provide these details, we can help you troubleshoot why the obfuscation is breaking your extension's functionality.

#

-# Browser JavaScript @teal crane @violet spindle @serene pine

proven lichen
#

javascript-obfuscator.io, and once the obf does its thing the strings change to hex, so it can no longer search for the correct <div>s on a page. Tried adding them to a config for reserved names and strings but even still it fails

serene pine
#

It'll still be reversed trivially more or less

#

Seems like something's broken on their end I guess