Lurker News
Hey HN,

I saw a thread a while ago (linked in README) discussing how Wikipedia does a good job keeping track of the domains of websites like Sci-Hub or The Pirate Bay. Someone mentioned checking Wikipedia to find links to these sites, so I thought this would be a fun thing to automate!
To try it out, install an extension or modify your hosts file, then type in the name of a website with the TLD `.idk`.
For example: scihub.idk -> sci-hub.tw
Cheers!

Comments (104) 28 threads

Show all comments

Showing thread 17 of 28

leoh1 reply#
Nice work! Sometimes I seem to be directed to a wikipedia page as opposed to a URL. For example, with `aaronsw.idk` or `google.idk`. I wonder why that's the case?
O_H_E2 replies#
I think it directs to the correct link when it is labeled `URL` in wiki. In the other cases the link is labeled `Website`.
aaronjanse1 reply#
This was exactly the issue! I just pushed fixes for this problem.
cooper12#
I've written a userscript[0] before regarding official websites and I feel this is the hierarchy you should be using:

1. Try getting the Wikidata "official website" property
2. Then any link inside of a {{url}} template or |website= in an infobox
3. And if you really want to try to get something to resolve to, the first site wrapped in {{official website}}
If you need code to reference: https://en.wikipedia.org/wiki/User:Opencooper/domainRedirect...
[0]: https://en.wikipedia.org/wiki/User:Opencooper/domainRedirect

yreg#
Is this inconsistency intended?