Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vxcwvxcw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
vxcwvxcw
7y ago
this works at least in chrome console (to get link urls, not emails) [...($$('a'))].map(e => e.href)
2.
▲
by
vxcwvxcw
7y ago
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