Block unwanted sites from your Google, DuckDuckGo, Startpage.com, Bing and Yahoo search results. v2.3.2 2024-08-31
< 腳本Google Hit Hider by Domain (Search Filter / Block Sites)的回應
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.
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.❤
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...
Okay, I think the new update fixes it.
Did the updated script work for you? Can you upgrade this comment to "好评 "?
@"Jefferson Scher" said: Did the updated script work for you? Can you upgrade this comment to "好评 "?
Thanks For the update.It works pretty awesome!!!!!
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:
The Blocked Search result:
Their HTML structures are different.