Settings

Theme

See HN comments that link to specific sites

5 points by sillysaurusx 19 hours ago · 0 comments · 1 min read


To show comments containing links to foo.com, visit /from?site=foo.com&kind=comment.

For example, to see all comments containing links to x.com:

https://news.ycombinator.com/from?site=x.com&kind=comment

Or all GitHub links:

https://news.ycombinator.com/from?site=github.com&kind=comment

Remarkably it matches subdomains too. Here’s all gists posted to HN:

https://news.ycombinator.com/from?site=gist.github.com&kind=comment

The submitted url shows all HN links posted to HN (i.e. comments containing news.ycombinator.com):

https://news.ycombinator.com/from?site=news.ycombinator.com&kind=comment

Note that this is distinct from showing comments with links to ycombinator.com, which doesn’t show links to HN:

https://news.ycombinator.com/from?site=ycombinator.com&kind=comment

I find this impressive, since it’s not merely matching text (otherwise site=ycombinator.com would also show HN links).

You can even set site=github.com/antirez to find comments with links to antirez’s repos:

https://news.ycombinator.com/from?site=github.com/antirez&kind=comment

site=x.com/paulg doesn’t work though, so apparently site=domain.com/path only works for certain domains.

I just discovered this, and embarrassingly emailed Dan asking whether kind=comment was broken since I didn’t understand what I was looking at. Was this announced somewhere and I missed it?

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection