Greasy Fork is available in English.

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

< Rückmeldungen auf Google Hit Hider by Domain (Search Filter / Block Sites)

Frage/Kommentar

Jefferson ScherVerfasser
§
Veröffentlicht: 20.01.2018
Bearbeitet: 20.01.2018

Baidu Support (v1.9.3+)

This seems to be mostly working.

There are three unusual features of Baidu:

(1) The domain is not coded into the title link. Instead, the script needs to read the green text below the excerpt. Sometimes this text is incomplete and ends with "...". Since there is no convenient way for the script to learn the full domain, the script records the ... and will use that in matching the green text. Sometimes, you end up needing to block two different domains:

  • https://www.long-domain-name.or... => long-domain-name.or...
  • www.long-domain-name.org => long-domain-name.org



(2) Baidu removes the MutationObserver object, which is how scripts normally detect changes to the page, such as new results when you click page 2+. So the script needs to use an older technology that can slow down the site called a DOM mutation listener. There might be a better way to work around this, but this seems to work for now.

(3) When loading new results, Baidu removes the style rules and forms added by the script, so those need to be reinjected. This is why you currently cannot move the Manage Hiding button to the top or bottom on pages 2+ of your results. I will try to fix that later.

Please post feedback on how it works for you.

Antwort schreiben

Anmelden um eine Antwort zu senden.