7

Would you use jsfuck for to make it a little harder on people to read the scripts?

Comments
  • 1
    why not? it‘s also good from a security perspective.
  • 0
    @lknk I thought so. Another thing I've been curious to try but haven't had a chance to do so, is a jsfucked script smaller if you use gzip compression? Also, what's the performance penalty? Any ideas?
  • 4
    Pls don't. There is a reason nobody does this. It's called performance. Just imagine the output of jsfuck in plain c. malloc over malloc.
  • 2
    @nitwhiz Then the end user needs to upgrade (typical developers' mentality these days)
  • 0
    @24th-Dragon Very well said. No in my case it's not. I'm just thinking about making it slightly harder to debug the JavaScript using the browser
  • 3
    @FuckJava Don't do it. I have helped several people fix JavaScript bugs by debugging it myself. If you make it harder to debug for an end-user, you also make it harder on yourself.
  • 3
    Wait. Somebody created a tool to make javascript less readable? Isn't it a bit overkill?
  • 0
    @Pickman LoL they tried to beat Brainfuck
  • 2
    Usually, a JS minifier is enough, and it won't harm SEO.
  • 0
    @Fast-Nop But Firefox (and probably that spyware Chrome, I wouldn't know) prettifies it with a single click.
  • 1
    @FuckJava So what? I wouldn’t make it look bad just for the sake of making it look bad.
  • 1
    @FuckJava if the code is understandable despite the nonsense variable names, then it is so simple that it isn't worth protecting anyway.

    And otherwise, obfuscating doesn't protect from reverse engineering valuable stuff either.
  • 1
    @Fast-Nop @grosten Mostly for fun... For the potential curious person to curse a little more while unfucking it
Add Comment