How do you make your javascript code unreadable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How do you make your javascript code unreadable?

I have gone to some websites, viewed the page source, and seen that the javascript/jquery section is jumbled up, so it's ineligible. i couldn't understand the workings of the code. I believe that was the aim. I have searched on how to do something like that but have not found anything useful. the html and cos parts were eligible. no issues, but the javascript/jquery was unreadable. I'd love to do something like that. but I don't know how.

8th Apr 2017, 7:45 AM
Freeborn
Freeborn - avatar
10 Answers
+ 17
the keyword you are looking for is: Obfuscation https://en.m.wikipedia.org/wiki/Obfuscation_(software)
8th Apr 2017, 7:49 AM
Burey
Burey - avatar
+ 6
;)
8th Apr 2017, 11:47 AM
Burey
Burey - avatar
+ 6
ebay is easy to edit
10th Apr 2017, 1:07 PM
Theprogrammers
Theprogrammers - avatar
+ 5
seriously?? that link worked great for me xD
8th Apr 2017, 11:57 AM
Burey
Burey - avatar
+ 5
also, just occured to me.... some minify services (https://jscompress.com for example) change some function and variable names to make them shorter when minifiying the code so the site you saw could have simply used that
8th Apr 2017, 7:19 PM
Burey
Burey - avatar
+ 4
Nice one @Burey 😉
8th Apr 2017, 11:46 AM
Ghauth Christians
Ghauth Christians - avatar
+ 2
I tried it again, and it worked. seems my network was bad. that's why i deleted the comment. u don't know how u managed to see it.
8th Apr 2017, 12:28 PM
Freeborn
Freeborn - avatar
+ 1
thank you burey ;)
8th Apr 2017, 4:35 PM
jati satrio
jati satrio - avatar
0
I have no idea🤔🙊💩.
8th Apr 2017, 6:54 PM
EpicGamer
0
hahaha @epicGamer. your answer is funny xD
8th Apr 2017, 7:48 PM
Freeborn
Freeborn - avatar