// Find all posts
var posts = node.getElementsByClassName("userContentWrapper");
var post, text;
console.log(posts);
console.log(typeof(posts));
console.log(Object.keys(posts));
console.log(posts.length);
The above outputs:
:( I don't understand. Why is length 0? It works in a fiddle: http://jsfiddle.net/p7yfv37s/
I also printed the object again after the length, and it still shows length: 4.