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.5 2025-03-21

< Google Hit Hider by Domain (Search Filter / Block Sites)についてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2016/11/16

Hiding Twitter Feed Universally.

When I search for 'twitter' in Google, the first result is the expected twitter.com website. The Hit Hider script does provide the BLOCK option next to the twitter.com URL and applying BLOCK does seem to remove regular search results from the twitter.com domain. Unfortunately, the action doesn't hide (or give the option to BLOCK) anything in the Twitter Feed search results. This occurs whether the result is twitter.com/Twitter or any other Twitter feed kicked back from a search. I was hoping hiding twitter.com would eradicate the Twitter Feed from view - but the script doesn't seem to recognize the Twitter Feed the same way it does other search engine results. Is there a way to hide the Twitter Feed search results altogether? Many thanks.

§
投稿日: 2016/11/17

That section doesn't follow the regular rules, it has a special layout. If you paste this code after line 326, just before the closing } of the checkNode() function, it will hide the Twitter carousel (at least until Google changes it):

  var specs = document.querySelectorAll('#rso > div[data-hveid]:not([ghhbdspec])');
  for (var sc=0; sc < specs.length; sc++){
    if (specs[sc].querySelector('g-link > a[href*="twitter"]')){
      specs[sc].style.display='none';
      specs[sc].setAttribute('ghhbdspec','hide');
    } else {
      specs[sc].setAttribute('ghhbdspec','');
    }
  }

返信を投稿

返信を投稿するにはログインしてください