Answer the question
In order to leave comments, you need to log in
Obfuscation of client-side JS, how to decode?
Hello.
I noticed an incomprehensible JS file on one site - jsfiddle .
I output the decoded to the console, instead of eval as in the code - jsfiddle
However, the code lacks spaces in the right places elseatif , returnfalse , etc.
How is it encoded and how to decode the code into a readable form? Why code client-side JS at all?
Answer the question
In order to leave comments, you need to log in
In general, I solved the issue. Obfuscation of client-side JS is a completely useless undertaking for developers, just wasting the resources of the user's browser for nothing.
It is solved elementarily, in the code where after decoding the code is executed eval(i) , we replace it with console.log(i) output to the console , copy it from there and paste the code into the file instead of the obfuscated one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question