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)

Review: Good - script works

§
Posted: 31-01-2018
Edited: 14-05-2018

Baidu works not very well

Support Baidu now,thank you! But I found a bug that the block works not very well on Baidu.Some of the domains like:baike.baidu.com were not blocked completely.

When I search SITE:baike.baidu.com on Baidu,there still some search reasult that were not blocked.Then I disable this script and found some diffs:

The Not Blocked Search result:

<div class="result-op c-container xpath-log" srcid="1547" id="1" tpl="bk_polysemy" mu="https://baike.baidu.com/item/5/18511227"
    data-op="{'y':'C7BFDF4A'}" data-click="{&quot;p1&quot;:&quot;1&quot;,&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;fm&quot;:&quot;albk&quot;,&quot;rsv_stl&quot;:&quot;&quot;,&quot;p5&quot;:1}">
    <h3 class="t c-gap-bottom-small">
        <a href="http://www.baidu.com/link?url=5gI5ZaD_0rvYJQKghnxgxlT4QJOcZE9UyPU01vS2X90Un_5JpImKwUEAUdw1-ngMX2x3ftXDU0afl-I5qkvkGK&amp;wd=&amp;eqid=eb9c52f50000b9ea000000065a717e79"
            target="_blank">5_
            <em>百度</em>百科</a>
    </h3>
    <div class="c-row">
        <div class="c-span6">
            <a href="http://www.baidu.com/link?url=5gI5ZaD_0rvYJQKghnxgxlT4QJOcZE9UyPU01vS2X90Un_5JpImKwUEAUdw1-ngMX2x3ftXDU0afl-I5qkvkGK"
                target="_blank" class="op-bk-polysemy-album op-se-listen-recommend" style="_height:121px">
                <img class="c-img c-img6" src="https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=3193378254,1833896584&amp;fm=58&amp;bpow=250&amp;bpoh=248">
            </a>
        </div>
        <div class="c-span18 c-span-last">
            <p>
                5 是Ed Sheeran继《+》《x》后的第三张专辑。爱德华·克里斯多弗·希兰(Edward Christopher Sheeran)艺名艾德·希兰(Ed Sheeran),1991年2月17日出生于英国英格兰西约克郡,是大西洋唱片(Atlantic
                Records)旗下的一位歌手同时也是一位创作人。
            </p>
            <p class=" op-bk-polysemy-move">
                <span class="c-showurl">baike.baidu.com/ </span>
                <span class="c-tools" id="tools_4835046134921426608_1" data-tools="{title:'5_百度百科',url:'http://baike.baidu.com/item/5/18511227?fr=aladdin'}">
                    <a class="c-tip-icon">
                        <i class="c-icon c-icon-triangle-down-g"></i>
                    </a>
                </span>
            </p>
        </div>
    </div>
</div>

The Blocked Search result:

<div class="result c-container " id="2" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520|vLevel:3&quot;,&quot;p5&quot;:2}">
    <h3 class="t c-title-en">
        <a data-click="{'F':'77A717EA','F1':'9D73F1E4','F2':'4CA6DD6B','F3':'54E5243F','T':'1517387385','y':'F6F8DFCB'}" 
        href="http://www.baidu.com/link?url=p8bLenS55pLwwGrjOLSQYCObVl4xJIsF-97oXhvyf3PmuuUtfYHKdTfY_bsKQzaO0mEw_I-Eykyrk4ii0Bs2pa"
            target="_blank">Max Fleischer_百度百科</a>
    </h3>
    <div class="m">查看此网页的中文翻译,请点击&nbsp;
        <a href="http://www.baidu.com/link?url=Rpd1K5VzFg1H1vLzBmg_T2YHdPOTiwXKa4hQscflVI7fqBrfEPfcowbzP5SVkI4BbZKi1VnuBzZ92PEmCEq5euSuKtWY3amnkra3h7EnMYV4gJrE__rF_AiKZBSsg3xNNsceNTlQH5MHYr-aXTMzVTeBvYuFNhMVZp2rJvPMs0oa1xvlbRXIphKhoX9PS5wztcFavHsGHy8Bp3SDThtlJq"
            target="_blank" class="m">翻译此页</a>
    </div>
    <div class="c-abstract c-abstract-en">
        <span class=" newTimeFactor_before_abs m">2014年4月10日&nbsp;-&nbsp;</span>合作关系人物名称合作作品合作最多的导演戴维·福勒斯奇尔Dave Fleischer合作作品(378):《Big Bad Sindbad》,《Popeye Makes
        a Movie》,《Popeye's Pr...</div>
    <div class="f13">
        <a target="_blank" href="http://www.baidu.com/link?url=p8bLenS55pLwwGrjOLSQYCObVl4xJIsF-97oXhvyf3PmuuUtfYHKdTfY_bsKQzaO0mEw_I-Eykyrk4ii0Bs2pa"
            class="c-showurl" style="text-decoration:none;">https://baike.baidu.com/item/M...&nbsp;</a>
        <div class="c-tools" id="tools_11437622198356888955_2" data-tools="{&quot;title&quot;:&quot;Max Fleischer_百度百科&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=p8bLenS55pLwwGrjOLSQYCObVl4xJIsF-97oXhvyf3PmuuUtfYHKdTfY_bsKQzaO0mEw_I-Eykyrk4ii0Bs2pa&quot;}">
            <a class="c-tip-icon">
                <i class="c-icon c-icon-triangle-down-g"></i>
            </a>
        </div>
        <span class="c-icons-outer">
            <span class="c-icons-inner">
                <span class="c-vline"></span>
                <span class="c-trust-as vstar " data_key="4656160715829409480" hint-data="{&quot;label&quot;:&quot;北京百度网讯科技有限公司&quot;,&quot;url&quot;:&quot;https://www.baidu.com/s?wd=%E5%8C%97%E4%BA%AC%E7%99%BE%E5%BA%A6%E7%BD%91%E8%AE%AF%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8@v&amp;vmp_ec=a059a9a71967d26c7108f522fedaa=JXh=dQLbL0d02496248RvN0Wbmfma91XaJ7ctle8hWJcb24s064571908a&amp;vmp_ectm=1517385607&amp;from=vs&quot;,&quot;hint&quot;:[{&quot;txt&quot;:&quot;[ecard 127]&quot;,&quot;vlevel&quot;:&quot;3&quot;}]}"
                    hint-type="vstar" render="render">
                    <a href="https://www.baidu.com/s?wd=%E5%8C%97%E4%BA%AC%E7%99%BE%E5%BA%A6%E7%BD%91%E8%AE%AF%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8@v&amp;vmp_ec=a059a9a71967d26c7108f522fedaa=JXh=dQLbL0d02496248RvN0Wbmfma91XaJ7ctle8hWJcb24s064571908a&amp;vmp_ectm=1517385607&amp;from=vs&amp;product=v&amp;rsv_dl=0_left_v_3"
                        class="c-icon c-icon-v c-icon-v3" target="_blank" data-click="{'title':'vstar','rsv_vlevel':'3'}"></a>
                </span>
            </span>
        </span>&nbsp;-&nbsp;
        <a data-click="{'rsv_snapshot':'1'}" href="http://cache.baiducontent.com/c?m=9d78d513d9d706ef06e2ce384b54967118279d7e6c848b4c28c3933fc33700170071e3cc767f4f1988832b381cd01a16fdf0317235777ee0c089d9108afb&amp;p=c366de15d9c84aef05b4c7710f4c&amp;newp=84759a4edd8b5dee07bcc7710f4f92694c05d67c6b8bcf5428b998438732002c0331a3fa7c7f4c0bd7c27f6603a94d59e9f33271360420b490c88b5e9bd6d37f6d87706826549a004d82&amp;user=baidu&amp;fm=sc&amp;query=SITE%3Abaike%2Ebaidu%2Ecom&amp;qid=eb9c52f50000b9ea&amp;p1=2"
            target="_blank" class="m">百度快照</a>
    </div>
</div>

Their HTML structures are different.

Jefferson ScherTác giả
§
Posted: 31-01-2018

Thank you for identifying these special boxes. I can see how to hide those, but the new code is not working consistently. It works on reload, but not during the "instant" search. Some changes made in the page are being missed. It's going to take a while to figure out.

§
Posted: 02-02-2018
Edited: 02-02-2018

I Found another Area that were not blocked.

Baidu sometimes puts the Search result in a div,the search results in that div wouldn't be blocked.

I searched Java基本数据类型的字节长度 SITE:zhidao.baidu.com on Baidu.Here is the div's code:

<div class="c-border">
    <div class="op_generalqa_main c-row">
        <i class="c-text c-text-safe c-gap-icon-right-small">问</i>
        <span class="op_generalqa_title c-gap-bottom-small">Java基本数据类型的字节长度 SITE:zhidao.baidu.com:</span>
    </div>

    <div class="op_generalqa_ext c-gap-top-small">
        <div class="op_generalqa_answer c-gap-bottom-small op_generalqa_answer_first">
            <i class="c-icon c-icon-circle-blue-s op_generalqa_answer_icon"></i>
            <p class="op_generalqa_answer_title">
                <a href="http://zhidao.baidu.com/question/489345513898237732.html" target="_blank">
                    <em>JAVA基本数据类型</em>所占
                    <em>字节</em>数是多少_百度知道</a>
            </p>
            <p class="op_generalqa_answer_content c-gap-top-small">boolean 这个试编译环境而定 byte 1个字节 short 2个字节 char 2个字节 int 4个字节 long 8个字节 float 4个字节 double 8个字节 希望我的回答能...</p>
            <p class="op_generalqa_answer_info c-gap-top-small">来自
                <a href="https://zhidao.baidu.com/question/489345513898237732.html" target="_blank">百度知道</a>
                <span class="op_generalqa_sep">|</span>1个回答
                <span class="op_generalqa_sep">|</span>2014-10-26</p>
        </div>
        <div class="op_generalqa_answer c-gap-bottom-small ">
            <i class="c-icon c-icon-circle-blue-s op_generalqa_answer_icon"></i>
            <p class="op_generalqa_answer_title">
                <a href="http://zhidao.baidu.com/question/1307512573819648339.html" target="_blank">
                    <em>java</em>中的
                    <em>基本数据类型</em>?各占多少位?多少
                    <em>字节</em>?取值范围_百度知道</a>
            </p>
            <p class="op_generalqa_answer_content c-gap-top-small">Int 32 4 -2,147,483,648 ~ 2,147,483,647 Short 16 2 -32768 ~ 32678 long 64 8 -9,223,372,036,854,775,808~+9,223,372,036,854,775,807
                float 32 4 -3,4029...</p>
            <p class="op_generalqa_answer_info c-gap-top-small">来自
                <a href="http://zhidao.baidu.com/question/1307512573819648339.html" target="_blank">百度知道</a>
                <span class="op_generalqa_sep">|</span>1个回答
                <span class="op_generalqa_sep">|</span>2017-03-14</p>
        </div>
        <div class="op_generalqa_answer c-gap-bottom-small ">
            <i class="c-icon c-icon-circle-blue-s op_generalqa_answer_icon"></i>
            <p class="op_generalqa_answer_title">
                <a href="http://zhidao.baidu.com/question/104669202.html" target="_blank">
                    <em>JAVA基本数据类型</em>所占
                    <em>字节数</em>是多少?_百度知道</a>
            </p>
            <p class="op_generalqa_answer_content c-gap-top-small">byte 1个字节 short 2个字节 char 2个字节 int 4个字节 long 8个字节 float 4个字节 double 8个字节</p>
            <p class="op_generalqa_answer_info c-gap-top-small">来自
                <a href="http://zhidao.baidu.com/question/104669202.html" target="_blank">百度知道</a>
                <span class="op_generalqa_sep">|</span>1个回答
                <span class="op_generalqa_sep">|</span>2009-07-04</p>
        </div>
    </div>
</div>

The HTML structure is different, too.

P.S..I spent a very long time to find a script(or a browser Addon) to do this on Baidu. Thanks a lot for all of this.❤

Jefferson ScherTác giả
§
Posted: 02-02-2018

Thank you for that new box info. This result has a very interesting extra attribute (bolded here):

<div class="result-op c-container xpath-log" srcid="1536" id="1" tpl="generalqa" mu="https://zhidao.baidu.com/question/489345513898237732.html" data-op="{'y':'B7E5FBFA'}" data-click="{"p1":"1","rsv_bdr":"0","fm":"alop","rsv_stl":"1","p5":1}">...</div>

If the "answers" are always from that same domain, then I could block result #1 entirely instead of blocking the individual results and leaving the question hanging there.

Hmm, I just realized the other box had that attribute, too. Maybe that will help in solving the problem I have with hiding it...

Jefferson ScherTác giả
§
Posted: 03-02-2018

Okay, I think the new update fixes it.

Jefferson ScherTác giả
§
Posted: 26-02-2018

Did the updated script work for you? Can you upgrade this comment to "好评 "?

§
Posted: 14-05-2018

@"Jefferson Scher" said: Did the updated script work for you? Can you upgrade this comment to "好评 "?

Thanks For the update.It works pretty awesome!!!!!

Post reply

Đăng nhập để bình luận