- 95 名前:名無しさん@お腹いっぱい。 mailto:sage [2009/03/19(木) 20:02:08 ID:bSlpOhGf0]
- てきとーに改造してみた。
IE7で動作確認。他ブラウザは未テスト。 [Patterns] Name = "Nico: Ad link+name to NGtitle custom[20090319]" Active = TRUE Multi = TRUE URL = "[^.]+.nicovideo.jp/$TYPE(htm)" Limit = 256 Match = "($URL(www.nicovideo.jp/*)" "</p>( (<div\sstyle=$AV(margin:*;)> <h3>|<p\sclass=$AV(TXT12)>|<h3[^>]+>|<table\sborder=$AV(0)[^>]+> <tr\svalign=$AV(top)> <td> <p>)" "<a[^>]++href=$AV(*watch/\0)[^>]+>)\1" "$SET(#= <span style="font-size:10px;cursor:pointer;text-decoration: underline;color: red;" onclick="set_ngtitle('\0')">[NG]</span></p> <!-- Dummy -->\1))|" "$URL(*/tag/([0-9a-z]+)\0\?SetNGTitle)" "$NEST(<a,[^>]++href=$AV(*watch/\9)*<img[^>]++alt=$AV(\1)*,</a>)" "$TST(\0=\9)(^$TST(\0=$LST(NGtitle)(^?)))" "$ADDLST(NGtitle,#\1)$ADDLST(NGtitle,\0(^?))|" "(^$TST(flag=1))(^(^</head>))" "$SET(#=<script type="text/javascript"><!--\r\n" "function set_ngtitle(url) {\r\n" "getHttp = new XMLHttpRequest();\r\n" "getHttp.onreadystatechange = function() {}\r\n" "getHttp.open("GET", "tag/" + url + "?SetNGTitle", true);\r\n" "getHttp.send(null);\r\n" "}\r\n" "//--></script>\r\n)$SET(flag=1)" Replace = "\@"
|

|