HNHacker News
TopNewBestAskShowJobs

vxcwvxcw

2 karma · joined October 10, 2019

submissionscomments
vxcwvxcw··on Computational survivalist
this works at least in chrome console (to get link urls, not emails)

[...($$('a'))].map(e => e.href)

vxcwvxcw··on Computational survivalist
I came up with:

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 ?)