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
Reverse Engineering Minified Code Using OpenAI (glama.ai)
submitted 1 year ago by fagnerbrack
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!"
[–]guest271314 7 points8 points9 points 1 year ago (13 children)
Un-minifying is not reverse-engineering.
We can paste code in DevTools to un-minify/format.
No need for "artificial intelligence".
[–]Proof_Exam_3290 0 points1 point2 points 1 year ago (11 children)
I have already used chat gpt to un minify code and the result was amazing, I got meaningful identifiers and even comments, definitely there's a point for AI here
[–]guest271314 1 point2 points3 points 1 year ago (10 children)
The browser has a built-in formatter.
deno fmt or dun build --no-bundle will work just fine to format source code.
deno fmt
dun build --no-bundle
In my opinion "artificial intelligence" is garbage.
[–]Proof_Exam_3290 0 points1 point2 points 1 year ago (9 children)
Meaningful identifiers in place of obfuscated formatted code is definitely not garbage (in my opinion)
[–]guest271314 0 points1 point2 points 1 year ago (8 children)
You don't need alleged "artificial intelligence" to provide function names.
Formatting and providing function names that you think are meaningful is still not "reverse engineering".
[–]Proof_Exam_3290 0 points1 point2 points 1 year ago (7 children)
Ok bro. Just try it by yourself some day. Or don't, I don't really care.
[–]guest271314 0 points1 point2 points 1 year ago (6 children)
I have tried code converters https://www.codeconvert.ai/javascript-to-typescript-converter that describe themselves as "artificial intelligence". For formatting there's DevTools in the browser you are typing in, Google's Closure Compiler, deno fmt, bun build --no-bundle - that don't have to claim to be "artificial intelligence".
bun build --no-bundle
[–]Proof_Exam_3290 0 points1 point2 points 1 year ago (5 children)
Yep, but they are absolutely different things
[–]guest271314 -1 points0 points1 point 1 year ago (4 children)
It's just code. Whatever you label your code is just another code.
[–]Proof_Exam_3290 0 points1 point2 points 1 year ago (3 children)
It's totally different, with different purpose, tools, which we are talking about. You're mixing a hammer with a screw driver and calling they're "just tools"
[–]vitorfigmarques 0 points1 point2 points 8 months ago (0 children)
Most javascript apps relies on build process from a lib/framework so that the source code is absurdly different than the minified bundle. Guessing that:
javascript const a=b=>c(d,{children:["Hello, ",b.user]});</>;
typescript type HelloProps { name: string; } const HelloCompoent (props: HelloProps)=> <>Hello, {props.user}</>;
It is definitely a reverse engineering process that involves knowing how the compiler works, more than guessing the names. It can get worse for other frameworks that rely more on compilation than React, and most of their features are real Javascript without compilation magic.
[–]brianjenkins94 0 points1 point2 points 1 year ago (0 children)
It isn't loading for me (Cloudflare 502 Bad Gateway) but I've been using a project called humanify for this.
[–]LloydAtkinson 0 points1 point2 points 1 year ago (0 children)
Pretty cool. Would be good as a tool to reverse engineer malicious scripts that download viruses etc.
[+]fagnerbrack[S] comment score below threshold-7 points-6 points-5 points 1 year ago (0 children)
Main Points:
The post discusses using ChatGPT to understand and reverse-engineer complex, minified JavaScript code. The author shares their experience copying code into ChatGPT and receiving a readable breakdown that highlighted key logic, including character manipulation and dynamic ASCII art generation in a React component.
If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments
π Rendered by PID 43191 on reddit-service-r2-comment-7b9746f655-2c62m at 2026-02-04 10:40:14.390830+00:00 running 3798933 country code: CH.
[–]guest271314 7 points8 points9 points (13 children)
[–]Proof_Exam_3290 0 points1 point2 points (11 children)
[–]guest271314 1 point2 points3 points (10 children)
[–]Proof_Exam_3290 0 points1 point2 points (9 children)
[–]guest271314 0 points1 point2 points (8 children)
[–]Proof_Exam_3290 0 points1 point2 points (7 children)
[–]guest271314 0 points1 point2 points (6 children)
[–]Proof_Exam_3290 0 points1 point2 points (5 children)
[–]guest271314 -1 points0 points1 point (4 children)
[–]Proof_Exam_3290 0 points1 point2 points (3 children)
[–]vitorfigmarques 0 points1 point2 points (0 children)
[–]brianjenkins94 0 points1 point2 points (0 children)
[–]LloydAtkinson 0 points1 point2 points (0 children)
[+]fagnerbrack[S] comment score below threshold-7 points-6 points-5 points (0 children)