this works at least in chrome console (to get link urls, not emails)
[...($$('a'))].map(e => e.href)
2 karma · joined October 10, 2019
[...($$('a'))].map(e => e.href)
document.documentElement.innerHTML.split('\n').forEach( (line) => line.includes('mailto:') ? console.log(line) : 0 )
But please push this further (is there a shorter way to say document.documentElement.innerHTML ?)