百度贴吧列表页号加入

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

Moderator: phoenix

User avatar
phoenix
Site Admin
Posts: 526
Joined: Dec 29 2007, 16:27

Re: 百度贴吧列表页号加入

Post by phoenix »

ttttaaaa wrote:这在有些精品上会丢失前面的 [
试试:

Code: Select all

[Patterns]
Name = "BaiDu TieBa: Add Last Page Link  2010.01.10"
Active = TRUE
URL = "$TYPE(htm)tieba.baidu.com/f\?"
Limit = 800
Match = "(<td>([#30:*])\0</td> <td class="s"><a href=$AV(/f\?kz=\1)*)\2</td>"
Replace = "\2 <span style="color:red;">&bull;&bull;</span> <a href="#" onmouseover="JavaScript:setTieBaList(this,'\0', '\1')">End</a></td>"
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

Re: 百度贴吧列表页号加入

Post by ddbb »

改版了 变了一小点

Code: Select all

[Patterns]
Name = "BaiDu TieBa: Add Last Page Link  2010.04.20"
Active = TRUE
URL = "$TYPE(htm)tieba.baidu.com/f\?"
Limit = 800
Match = "(<td>([#30:*])\0</td> <td class="thread_title"> <a href=$AV(/f\?kz=\1)*)\2</td>"
Replace = "\2 <span style="color:red;">&bull;&bull;</span> <a href="#" onmouseover="JavaScript:setTieBaList(this,'\0', '\1')">End</a></td>"
polluxboy
Posts: 21
Joined: Apr 21 2010, 08:55

Re: 百度贴吧列表页号加入

Post by polluxboy »

为什么我点了那个END.。。没有反应啊??
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

Re: 百度贴吧列表页号加入

Post by ddbb »

啊 还有这个

和上面那个规则一起 两个一起用 才有效果

Code: Select all

Name = "BaiDu TieBa: Add Last Page Link JS"
Active = TRUE
URL = "$TYPE(htm)tieba.baidu.com/f?"
Limit = 10
Match = "(^(^</body>))"
Replace = "\r\n"
          "<script type="text/javascript">\r\n"
          "  function gotoTieBaList(no, page) {\r\n"
          "    var n = parseInt((no/30));\r\n"
          "    n = (n*3)*10;\r\n"
          "    window.location.href= "/f?z="+page+"&ct=335544320&lm=0&sc=0&rn=30&tn=baiduPostBrowser&pn="+n;\r\n"
          "  }\r\n"
          "</script>\r\n"
          "$STOP()"
polluxboy
Posts: 21
Joined: Apr 21 2010, 08:55

Re: 百度贴吧列表页号加入

Post by polluxboy »

还是没有任何反应诶。。。囧
ddbb
Moderator
Posts: 425
Joined: Jan 07 2008, 13:30

Re: 百度贴吧列表页号加入

Post by ddbb »

Post Reply