De-obfuscate Javascript code to make it readable again

前端 未结 6 1602
小蘑菇
小蘑菇 2020-11-29 23:22

I hate to bring this here, while doing the learning of obfuscating the JS code, I encoded my code and then over wrote the orginal one without any backup :) Following is my o

6条回答
  •  攒了一身酷
    2020-11-30 00:13

    I have tried both of online jsbeautifier(jsbeautifier, jsnice), these tools gave me beautiful js code,

    but couldn't copy for very large js (must be bug, when i copy, copied buffer contains only one character '-').

    I found that only working solution was prettyjs:

    http://www.thaoh.net/prettyjs/

提交回复
热议问题