JS get all links of web page, values of a[href] attribute

to quickly get values of href attribute of a link in web page

[].map.call(document.links,String)

new line separated, and copy to clipboard:

copy([].map.call(document.links,String).join('\n'))