What I understand is you want to do this from browser itself: in that case use chrome open debug panel (press F12) and got to console tab and paste following code and press enter, and then copy the list of links from console and put in txt file.
var tags = document.getElementsByTagName("a");
for(var i=0;i<tags.length;i++) {
console.log(tags[i].getAttribute("href"));
}