百度贴吧规则

针对特定网站的规则分享、讨论

Moderator: phoenix

Post Reply
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

百度贴吧规则

Post by ddbb » Jan 15 2010, 11:28

Code: Select all

[Patterns]
Name = "BaiDu TieBa Update 2009.1.09 [ddandyy]"
Active = TRUE
URL = "$TYPE(htm)tieba.baidu.com/"
Limit = 1100
Match = "<div style="margin:0 0 5px 8px;width:84%">*</div>$SET(0=<!-- BaiDu TieBa Update 2009.1.09 [ddandyy] -->)|"
        "<div class="sign_split"></div>*</td>$SET(0=</td>)|"
        "<li><a [^>]+><img class="icon" *></a></li>$SET(0=<li></li>)|"
        ""
        "<div id=$AV(zyq)>$SET(0=<div id="zyq" style="display:none">)|"
        "<div id=$AV(userbar)>$SET(0=<div id="userbar" style="display:none">)|"
        "[%CD][%B6][%C6][%B1][%C7][%F8]</a></div></td>\s<td class="frsHTagSpace"><div></div></td>$SET(0=&#25237;&#31080;&#21306;</a></div></td>\r\n\t<td class="frsHTagSpace"><div>|</div></td>\r\n\t\r\n<td class="frsHTagUnSelected"><div class="frsHTagFix"><a href="JavaScript:showHidden()" target="_top">showHidden</a></div></td>\r\n<td class="frsHTagSpace"><div>|</div></td>\r\n)|"
        "(<input type="submit" * id="(add_post_submit|Submit3)" * >)\1$SET(0=\1 &nbsp;&nbsp; <a href="http://baidu.airyai.cn:8081/beta1.html" target="_top">&#21644;&#35856;&#27979;&#35797;</a>)"
Replace = "\0\r\n"

Code: Select all

function showHidden() {
    document.getElementById("zyq").style.display="";
    document.getElementById("userbar").style.display="";
}
前两天无聊的时候写的.....第一行是过滤head广告 第2和3行是过滤签名和头像 有不需要的可以删掉

剩下的是在一起的 那个JS也要加到页面里 自己想办法加吧

效果就是隐掉右边和上边的一大块.....有需要的时候 点一下showHidden 就会出来了

a646749
Posts: 2
Joined: Jun 04 2013, 11:31

Re: 百度贴吧规则

Post by a646749 » Jun 04 2013, 11:38

Code: Select all

[Patterns]
Name = "BaiDuTieBa"
Active = TRUE
URL = "$TYPE(htm)tieba.baidu.com/"
Limit = 2048
Match = "$NEST(<div (id|class)="
        "$AV(cproshow|l_banner banner_theme_2|pb_adbanner|pc2client|aside_ad),</div>)|"
        "$NEST(<script>,*common/component/dimension_code*,</script>)"
这样貌似也可以删除全部广告,不过没有杀签名
规则都是针对单网站防误杀-。-

Post Reply