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.3 2024-12-08

< 腳本Google Hit Hider by Domain (Search Filter / Block Sites)的回應

提問/評論

§
發表於:2015-08-05

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

§
發表於:2015-08-05

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

發表回覆

登入以回復