Gallery/pya!最終更新: 2010-09-24 (金) 17:09:52 (5233d) |
[Patterns] Name = "pya!: genre (090106)" Active = TRUE URL = "pya.cc/|pyu.me/" Limit = 256 Match = ">" "(Text$SET(0=white)" "|Image$SET(0=orange)" "|Photo$SET(0=orange)" "|4coma$SET(0=orange)" "|[%EF][%BE][%80][%EF][%BD][%B2][%EF][%BE][%84][%EF][%BE][%99][%E8][%81][%B7][%E4][%BA][%BA]$SET(0=orange)" "|Eroina$SET(0=pink)" "|Video$SET(0=#f55)" "|Video-P$SET(0=#f55)" "|Flash$SET(0=#aaf)" "|Game$SET(0=#aaf)" "|Other$SET(0=lightgrey)" ")\1<" "((^$OHDR(User-Agent:*MSIE(^\s8.)))$SET(2=><span)$SET(3=</span>)|)" Replace = "\2 style="color:black;background-color:\0">\1\3<"
UAをいじっている場合、適当に書き換えてください。
090106 MSIE以外でも動くようにした(IE以外ではstyle属性が重複すると最初のしか処理されないっぽい)
[Patterns] Name = "pya!: 18+, wan, nya hightlight (081213)" Active = TRUE URL = "pya.cc/" Bounds = "$NEST(<a\s*>,</a>)" Limit = 1024 Match = "((<*> )+)\#(((<*> )+)\#\#" "(18\+$SET(#=<span style="background-color:pink">18+</span>)" "|wan$SET(#=<span style="background-color:burlywood">wan</span>)" "|nya$SET(#=<span style="background-color:silver">nya</span>)" "))+{1,*}\#" Replace = "\@"
081213 bタグで囲まれていない物にも対応させた
大体入れるとこんな感じになる
上がpya!で下がpyu!
pya!の方は年齢制限がないページでも"r18=1"をURLに付加しているので注意
[HTTP headers] In = FALSE Out = TRUE Key = "URL: pya! Age-limit Breaker (090921) (out)" URL = "pya.cc" Match = "http://pya.cc/pyaimg/pimg.php\?imgid=\0" Replace = "$JUMP(http://pya.cc/pyaimg/pimg.php\?r18=1&imgid=\0)"
In = FALSE Out = TRUE Key = "URL: pyu! Age-limit Breaker (090921) (out)" URL = "pyu.me" Match = "http://pyu.me/alert.html" Replace = "$JUMP(http://pyu.me/index.php\?han=1)"
[Patterns] Name = "pya!: string ad killer (090106)" Active = TRUE URL = "pya.cc/|pyu.me/" Limit = 1024 Match = "$NEST(<a\shref=$AV(/banner/bcnt.php?id=[0-9]+)[^>]+>,</a>)" "|<embed\ssrc=$AV(/pyaimg/dti/cari/[0-9]+++.swf)[^>]+>"
アドレスがttp://pya.cc/banner/bcnt.php?id=XXX(XXXは任意の数字)の文字列広告を排除します。 その他排除したい要素を任意で追加してください。
【更新履歴】
080106
URLに pyu.me を追加
<a\shref=$AV(/banner/bcnt.php?id=[0-9]+)[^>]+>$NEST(<span\sclass="bbs1">,</span>)</a> を $NEST(<a\shref=$AV(/banner/bcnt.php?id=[0-9]+)[^>]+>,</a>) に変更
<embed\ssrc=$AV(/pyaimg/dti/cari/[0-9]+++.swf)[^>]+> を追加
080104
<a\shref=$AV(/banner/bcnt.php?id=[0-9]+)[^>]+>$NEST(<span\sclass="bbs1">,</span>)</a> を追加