tianya.cn 天涯只看

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

Moderator: phoenix

Post Reply
不夜侯
Posts: 101
Joined: Jul 29 2009, 16:22

tianya.cn 天涯只看

Post by 不夜侯 » May 24 2010, 15:49

利用天涯的VIP脚本实现,在页面的右下有一个选择菜单。
应该是通用天涯的所有页面。

Code: Select all

[Patterns]
Name = "tianya_天涯只看"
Active = TRUE
URL = "$TYPE(htm)[^/]++.tianya.cn/\w.shtml"
Limit = 100
Match = "(<SCRIPT[^>]++\ssrc=$AV(\w/__ty_vip.js)[^>]++>)\0$SET(MYOP="
        "<STYLE type="text/css">"
        ".tianya_menu{position:fixed;bottom:0;right:8px;top:85%;width:70px;}"
        "a:link { text-decoration: none;color: blue}"
        "a:active { text-decoration:blink}"
        "a:hover { text-decoration:underline;color: red}"
        "a:visited { text-decoration: none;color: green}</STYLE>"
        "<div class=tianya_menu>"
        "<a href="javascript:V.lookByAuthor( V.author );"><font size=2>只看楼主</font></a><br /><br />"
        "<a href="javascript:void(f=prompt('输入查看人ID:',''));V.lookByAuthor( f );"><font size=2>只看某人</font></a><br /><br />"
        "<a href="javascript:V.lookByAuthorBack();"><font size=2>查看所有</font></a><br /><br /><br /></div>"
        "\0)"
        "|(<script[^/]++\ssrc=$AV(\w/js/user_ty_vip.js)[^/]++>)\1$SET(MYOP=<STYLE type="text/css">"
        ".tianya_menu_2{position:fixed;bottom:0;right:3px;top:80%;height:100px;width:70px;}"
        "a:link { text-decoration: none;color: blue}"
        "a:active { text-decoration:blink}"
        "a:hover { text-decoration:underline;color: red}"
        "a:visited { text-decoration: none;color: green}</STYLE>"
        "<div class=tianya_menu_2>"
        "<a href="javascript:__ty_vip_fn_look_by_author(chrAuthorName);void 0;"><font size=2>&#x53EA;&#x770B;&#x697C;&#x4E3B;</font></a><br /><br />"
        "<a href="javascript:void(f=prompt('&#x8F93;&#x5165;&#x67E5;&#x770B;&#x4EBA;ID:',''));__ty_vip_fn_look_by_author( f );void 0;"><font size=2>&#x53EA;&#x770B;&#x67D0;&#x4EBA;</font></a><br /><br />"
        "<a href="javascript:__ty_vip_fn_look_back(chrAuthorName, true);void 0;"><font size=2>&#x67E5;&#x770B;&#x6240;&#x6709;</font></a>"
        "<br /><br /></div>"
        "\1)"
Replace = "$GET(MYOP)"
          "$STOP()"
2010-05-24_154553.gif
2010-05-24_154553.gif (109.11 KiB) Viewed 4894 times

jonaphan
Posts: 8
Joined: Jan 25 2010, 21:00

Re: tianya.cn 天涯只看

Post by jonaphan » Jul 18 2010, 00:09

这个规则现在是不是失效了呀???用不起,opera10.1

不夜侯
Posts: 101
Joined: Jul 29 2009, 16:22

Re: tianya.cn 天涯只看

Post by 不夜侯 » Jul 19 2010, 18:51

天涯最近有点抽风,另js名称有点小变动,稍改下就行了。
规则更新一下:

Code: Select all

[Patterns]
Name = "tianya_天涯只看"
Active = TRUE
URL = "$TYPE(htm)[^/]++.tianya.cn/\w.shtml"
Limit = 100
Match = "(<SCRIPT[^>]++\ssrc=$AV(\w/js/global/__ty_vip(_new|_[0-9]+{8}|).js)[^>]++>)\0$SET(MYOP="
        "<STYLE type="text/css">"
        ".tianya_menu{position:fixed;bottom:0;right:8px;top:85%;width:70px;}"
        "a:link { text-decoration: none;color: blue}"
        "a:active { text-decoration:blink}"
        "a:hover { text-decoration:underline;color: red}"
        "a:visited { text-decoration: none;color: green}</STYLE>"
        "<div class=tianya_menu>"
        "<a href="javascript:V.lookByAuthor( V.author );"><font size=2>只看楼主</font></a><br /><br />"
        "<a href="javascript:void(f=prompt('输入查看人ID:',''));V.lookByAuthor( f );"><font size=2>只看某人</font></a><br /><br />"
        "<a href="javascript:V.lookByAuthorBack();"><font size=2>查看所有</font></a><br /><br /><br /></div>"
        "\0)"
        "|(<script[^/]++\ssrc=$AV(\w/js/user_ty_vip.js)[^/]++>)\1$SET(MYOP=<STYLE type="text/css">"
        ".tianya_menu_2{position:fixed;bottom:0;right:3px;top:80%;height:100px;width:70px;}"
        "a:link { text-decoration: none;color: blue}"
        "a:active { text-decoration:blink}"
        "a:hover { text-decoration:underline;color: red}"
        "a:visited { text-decoration: none;color: green}</STYLE>"
        "<div class=tianya_menu_2>"
        "<a href="javascript:__ty_vip_fn_look_by_author(chrAuthorName);void 0;"><font size=2>&#x53EA;&#x770B;&#x697C;&#x4E3B;</font></a><br /><br />"
        "<a href="javascript:void(f=prompt('&#x8F93;&#x5165;&#x67E5;&#x770B;&#x4EBA;ID:',''));__ty_vip_fn_look_by_author( f );void 0;"><font size=2>&#x53EA;&#x770B;&#x67D0;&#x4EBA;</font></a><br /><br />"
        "<a href="javascript:__ty_vip_fn_look_back(chrAuthorName, true);void 0;"><font size=2>&#x67E5;&#x770B;&#x6240;&#x6709;</font></a>"
        "<br /><br /></div>"
        "\1)"
Replace = "$GET(MYOP)"
          "$STOP()"


jonaphan
Posts: 8
Joined: Jan 25 2010, 21:00

Re: tianya.cn 天涯只看

Post by jonaphan » Jul 21 2010, 22:48

呵呵,正常使用中~原来是天涯抽了下风.

Post Reply