News for hackers. Stuff that matters.
Re:Custom Colors of HN by thedufer on Wednesday March 19, 2014 @09:26PM (#7433192)
Looking at it in the console, it looks like $ returns a single DOM element and $$ returns a NodeList (array-like object) of DOM elements. Not sure what library that is.
Re:Custom Colors of HN by reubenmorais on Wednesday March 19, 2014 @09:36PM (#7433237)
No library, at least in Firefox it's defined by devtools and only works in the console (provided the page doesn't have it's own $ and $$ globals).

[0] http://dxr.mozilla.org/mozilla-central/source/toolkit/devtoo...

[1] http://dxr.mozilla.org/mozilla-central/source/toolkit/devtoo...

Edit: It works in the WebKit devtools too:

[0] https://mxr.mozilla.org/chromium/source/src/third_party/WebK...

Re:Custom Colors of HN by scrabble on Wednesday March 19, 2014 @09:29PM (#7433206)
PrototypeJS works that way.