Reverse Uglified Javascript Code

前端 未结 3 782
猫巷女王i
猫巷女王i 2021-01-04 06:12

I am looking for way (preferably and online site) to a reverse Uglify of some javascript. The Website: http://jsbeautifier.org/ is great for minifed code, but it is does not

3条回答
  •  花落未央
    2021-01-04 06:15

    Depends on what options you used when you uglify your code. If you just remove the line breaks, then Chrome dev tools will be able to do a great work as sirinivas explained. But if you mangle the code, then ther is no way you can get the exact previous code. (in uglifying var logngvariable = a + b; becomes var c=a+b;. there is no way a tool can figure out the previous name logngvariable )

    On the otherhand if you want an un-uglified code you may not uglify it at the first place... :)

提交回复
热议问题