var nodes = document.querySelectorAll(\'a\');
for (var i in nodes){
console.log(nodes[i].href);
}

폰으로 치는 거라 될지 안 될지는 모르겠지만
되면 적당히 알아서 응용하세여