querySelectorAll documentation code example
Example 1: class query css js all
var matches = document.querySelectorAll("div.note, div.alert");
Example 2: document.queryselectorall extract all href element
[].forEach.call( document.querySelectorAll('img.PinImageImg'),
function fn(elem){
console.log(elem.src);
});