News for hackers. Stuff that matters.
Re:Show HN: Beautify-with-words unminifies JS with unique wo... by crazygringo on Monday January 27, 2014 @12:38PM (#7131719)
Very cool. Nice work.

I think it would be even cooler as a Firefox extension -- open up a .min.js file in one tab, hit your button, and get a new tab with the beautified js. I don't know anything about FF extensions, but since this is written in JS in the first place, it seems doable.

(Or alternatively, it would also be cool as a standalone site, just paste the URL or uglified JavaScript in a box, and get the pretty version.)

Re:Show HN: Beautify-with-words unminifies JS with unique wo... by jaredsohn on Monday January 27, 2014 @05:59PM (#7134003)
I think the way to go would be to create a standalone site and then have a bookmarklet that opens the existing page on that site.

Edit: If you want to use your own bookmarklet, feel free to start off with this: void(open("http://beautifywithwords.com?url=" + location,'_self',''))

Edit2: http://jsbeautifier.org/ has some similarities to this (and integrates with various browsers, editors, etc.) but I don't think it replaces variable names. Perhaps it would make sense to integrate your code into it as an extra feature?

Re:Show HN: Beautify-with-words unminifies JS with unique wo... by zertosh on Monday January 27, 2014 @01:06PM (#7131927)
I'm the author. I've made extensions for Chrome before (https://github.com/zertosh/jquery-audit) and I don't think I can incorporate this in a nice way. I'll look into FF. As for a standalone site, I really dig that idea - stay tuned. I'm also learning more about the Uglify internals to submit this as a patch.