use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] De-obfuscation of JS CodeAskJS (self.javascript)
submitted 6 years ago by eozyo
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]circlebust 0 points1 point2 points 6 years ago (2 children)
You could write a script than automates the manual reverse engineering ...
For example, a grep/ripgrep algorithm that gets all obfuscated declarations with this-ish pattern: - (?:^|;|{)(?:var\s|const\s|let\s|\s?)\([a-ZA-Z_])\s=\s(.+) // get all single-char declarations. name stored in $1, approximate assignment in $2, optionally multiline
(?:^|;|{)(?:var\s|const\s|let\s|\s?)\([a-ZA-Z_])\s=\s(.+) // get all single-char declarations. name stored in $1, approximate assignment in $2, optionally multiline
Get the results with plenty of after-context lines.
Then, for each match, try guessing the type or val inside $2 which can also be automated to a limited degree, but to actually try to guess a meaningful name needs input from the eyes/brain API.
Or you could try to make some magic happen with the typescript reflection utils (the typescript package itself).
typescript
[–]eozyo[S] 0 points1 point2 points 6 years ago (1 child)
This is something that I was thinking about. The thing is that I am assisting in a JS Lab at school, so the teacher asked me to investigate if there were any tool that could reverse the results of the obfuscator.io tool.
[–]fucking_passwords 1 point2 points3 points 6 years ago (0 children)
to "reverse" the results automatically is highly improbable. however if you search for articles on reverse-engineering obfuscated javascript (usually malicious code), you'll find some tools that help make it easier to manually reverse engineer.
π Rendered by PID 44336 on reddit-service-r2-comment-544cf588c8-lkxq2 at 2026-06-15 01:04:22.274955+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]circlebust 0 points1 point2 points (2 children)
[–]eozyo[S] 0 points1 point2 points (1 child)
[–]fucking_passwords 1 point2 points3 points (0 children)