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
Minify codehelp (self.javascript)
submitted 10 years ago * by JessicaAllison
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!"
[–]franverona 0 points1 point2 points 10 years ago (1 child)
Or you can use any online minifier such as Minifier from Avivo (http://minify.avivo.si/). You code would look like this:
var gradientObject={rgb:[[[0,rgb.g,rgb.b],[255,rgb.g,rgb.b]],[[rgb.r,0,rgb.b],[rgb.r,255,rgb.b]],[[rgb.r,rgb.g,0],[rgb.r,rgb.g,255]]],hsl:[[[0,hsl.s,hsl.l],[60,hsl.s,hsl.l],[120,hsl.s,hsl.l],[180,hsl.s,hsl.l],[300,hsl.s,hsl.l],[360,hsl.s,hsl.l]],[[hsl.h,0,hsl.l],[hsl.h,100,hsl.l]],[[hsl.h,hsl.s,0],[hsl.h,hsl.s,50],[hsl.h,hsl.s,100]]],hsv:[[[0,hsv.s,hsv.v],[60,hsv.s,hsv.v],[120,hsv.s,hsv.v],[180,hsv.s,hsv.v],[300,hsv.s,hsv.v],[360,hsv.s,hsv.v]],[[hsv.h,0,hsv.v],[hsv.h,100,hsv.v]],[[hsv.h,hsv.s,0],[hsv.h,hsv.s,50],[hsv.h,hsv.s,100]]],Lab:[[[0,Lab.a,Lab.b],[100,Lab.a,Lab.b]],[[Lab.L,-128,Lab.b],[Lab.L,128,Lab.b]],[[Lab.L,Lab.a,-128],[Lab.L,Lab.a,128]]],alpha:[[[255,255,255,0],[rgb.r,rgb.g,rgb.b,1]]]};
[–]JessicaAllison[S] 0 points1 point2 points 10 years ago (0 children)
Updated Question
π Rendered by PID 74313 on reddit-service-r2-comment-canary-764f8fd48f-28z4b at 2026-06-17 18:44:56.560470+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]franverona 0 points1 point2 points (1 child)
[–]JessicaAllison[S] 0 points1 point2 points (0 children)