3 comments

[ 2.7 ms ] story [ 20.1 ms ] thread
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=comme...

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

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

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&...

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=...

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&ki...

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?

(comment deleted)
A bit off topic, but: Is there a way to get my comments, sorted by most popular? news.ycombinator.com/threads:id=AnimalMuppet... and then what?

Or do I want something other than "threads" there, since I could accept just my comments, rather than the whole comment thread.