aaronjanse / dns-over-wikipedia

Redirect `.idk` domains using Wikipedia
1.52k stars 21 forks source link

Allow using .idk (not .idk/ ) #5

Closed undefined-moe closed 4 years ago

BtM909 commented 4 years ago

It might have to do with the fact that .idk (where is the tld name coming from, hehe) isn't a official registered domain. So without the last slash it will actually invoke a search engine search. Adding slash explicitly tries to route you to the website.

undefined-moe commented 4 years ago

but it's really annoying. is there any way to hook this event?

aaronjanse commented 4 years ago

One possible solution would be creating an omnibox keyword where the user types idk followed by a space or tab, then the query. To see this behavior on default Google Chrome, try typing bing.com hacker news.

Thoughts?

undefined-moe commented 4 years ago

That seems better :D

aaronjanse commented 4 years ago

Fixed by https://github.com/aaronjanse/dns-over-wikipedia/commit/2b84e7b3041d5f246d7c19ee50a395dd230f9d42

undefined-moe commented 4 years ago

What about simply check if url matchs https://google.com/search?q=foo.idk (etc)?