Let's say you wanted all of the URL's on http://cdnjs.com/ in one big array. Is there some cool nerdy way to do that?
-
-
Replying to @chriscoyier
@chriscoyier copy(JSON.stringify([].map.call(document.querySelectorAll('.input-block-level[readonly]'), function(el) { return el.value; })))2 replies 0 retweets 6 likes -
Replying to @chriscoyier
@chriscoyier The second one is more useful in case you want to copy-paste the array somewhere, but you figured that out :)1 reply 0 retweets 0 likes -
Replying to @mathias
@mathias@chriscoyier Nice. The code without being wrapped in a copy() worked when pasting into Console in chrome dev tools :thumbsup:1 reply 0 retweets 0 likes
Replying to @fideloper
@fideloper First tweet was this one: http://mths.be/332211977910890498 … The other one is easier when you want to copy-paste the array structure.
12:48 PM - 8 May 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.