Google Hit Hider by Domain (Search Filter / Block Sites)

Block unwanted sites from your Google, DuckDuckGo, Startpage.com, Bing and Yahoo search results. v2.3.2 2024-08-31

< Feedback on Google Hit Hider by Domain (Search Filter / Block Sites)

Question/comment

§
Posted: 05.08.2015

How to block top-level domain

Hi!
How to implement this feature in script?
I try to import next variants:
.com
*.com
|.com:t|
|*.com:t|
www.*.com
But without success...

§
Posted: 05.08.2015

Currently, there is no way to block an entire generic TLD such as .com or .sucks. The script performs comparisons of the domain in the search result by progressively removing subdomains and comparing each for an exact match on your block list:

www.my.social.network.com
my.social.network.com
social.network.com
network.com

and then stops. A pure TLD is never checked against the block list. Or should I say, if there is no dot left in the domain, the script stops comparing (see line 350).

This probably could be changed, but in a few experiments this morning, I got infinite loops that froze the browser, so it's something I would need to test carefully.

(Currently, if you want .com on the block list, you can import www.com and then use the un-www button. But for the above reason, it won't do anything. Adding a TLD block would require a usable interface, too.)

Post reply

Sign in to post a reply.