# nlフィルタ定義(文字コード判定用なのでこの行は削除しないこと) [Replace] Name = ポップアップ用スクリプト埋め込み URL = [^/]*?\.(?:nicovideo\.jp|niwavideo\.com)/ ContentType = text/html MatchLocal = TRUE Match< (?=\s*) > Replace< > [Replace] Name = リンク追加(ext) URL = ext(?:\.seiga|\.ichiba|)\.nicovideo\.jp/(?:thumb|api/getthumbinfo/\w{2}\d+\?nlFilter) ContentType = text/(?:html|xml) Multi = TRUE EachLine = TRUE Match< (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?!]*/>)(?:(?!|(?:(?! Replace< $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 > [Replace] Name = リンク追加(extキャッシュ済み) URL = ext(?:\.seiga|\.ichiba|)\.nicovideo\.jp/(?:thumb|api/getthumbinfo/\w{2}\d+\?nlFilter) ContentType = text/(?:html|xml) Multi = TRUE idGroup = 1 Match< ]*\bhref="[^">]*/watch/(\w{2}\d{1,9})(?:\?[^">]*|)" > Replace< $0 style="color:#;" > [Replace] Name = リンク追加(video.array) URL = i\.nicovideo\.jp/v3/video\.array ContentType = text/xml Multi = TRUE EachLine = TRUE Match< (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) (?s)(?<=<(description|last_res_body|div|p)\b(?![^>]*/>)(?:(?!|((?!<).)*>|(?:(?!<a\b).)*</a\b) > Replace< <a href="h$2" target="_top">$0</a> <a href="http://$2" target="_top">$0</a> <a href="mailto:$0" target="_top">$0</a> <a href="http://$0" target="_top">$0</a> <a href="http://seiga.nicovideo.jp/$0" class="watch" target="_top">$0</a> <a href="http://www.nicovideo.jp/$0" class="watch" target="_top">$0</a> <a href="http://www.nicovideo.jp/$0" class="watch" target="_top">$0</a> <a href="http://www.nicovideo.jp/watch/$0" class="watch" target="_top">$0</a> <a href="http://com.nicovideo.jp/community/$0" target="_top">$0</a> <a href="http://ch.nicovideo.jp/channel/$0" target="_top">$0</a> <a href="http://ch.nicovideo.jp/article/$0" target="_top">$0</a> <a href="http://live.nicovideo.jp/watch/$0" target="_top">$0</a> <a href="http://seiga.nicovideo.jp/watch/$0" class="watch" target="_top">$0</a> <a href="http://seiga.nicovideo.jp/seiga/$0" target="_top">$0</a> <a href="http://app.nicovideo.jp/app/$0" target="_top">$0</a> <a href="http://commons.nicovideo.jp/material/$0" target="_top">$0</a> > [Replace] Name = リンク追加(video.arrayキャッシュ済み) URL = i\.nicovideo\.jp/v3/video\.array ContentType = text/xml Multi = TRUE idGroup = 1 Match< <a (?:(?!>).)*\bhref="[^"&]*/watch/(\w{2}\d{1,9})(?:(?!>|").)*" > Replace< $0 style="color:#;" > [Replace] Name = ポップアップリンク置換(ニコニ広告) URL = res\.nimg\.jp/js/(?:top_|)uad_embed\.js Multi = TRUE Match< (]*\bhref="[^">]*send\?bannerid=[^">]*")([^>]*>)(?!\s*+ Replace< $1 onMouseOver="return popThumb2(\\'[U\$video_id]\\', 0)" onMouseOut="return nd()"$2 > #ここから下のコメントアウトを外すとiframe内からpopThumb_FAでのポップアップ [RequestHeader] Name = URL_Redirect Match< http://[^/]+/pr_Redirect_(.+) > Replace< http://$1 > [Replace] Name = iframe内からポップアップ 1/3 (リダイレクトで別ドメインからでもポップアップを許可させる) URL = [^/]*?\.(?:nicovideo\.jp|niwavideo\.com)/ ContentType = text/(?:html|xml) Multi = TRUE Match< (]*src=")http://(?=ext(?:\.seiga|\.ichiba|)\.nicovideo\.jp/thumb) > Replace< $1$URL0pr_Redirect_ > [Replace] Name = iframe内からポップアップ 2/3 (「/」でのトップ参照のためにbaseを指定する) URL = ext(?:\.seiga|\.ichiba|)\.nicovideo\.jp/thumb[^\?#]+ ContentType = text/(?:html|xml) Require = !\s?+) > Replace< > [Replace] Name = iframe内からポップアップ 3/3 (iframe内からのポップアップを多段ポップアップに見せかける) URL = www\.nicovideo\.jp/local/popThumb_FA\.js Multi = TRUE EachLine = TRUE Match< if \(popThumb\.use_iframe \&\& popThumb\.inIframe\b A\.isTop = window == window.parent \|\| !window\.parent\.popThumb \|\| \!A\.inIframe; > Replace< if (!popThumb.isTop A.isTop = window == window.parent || !window.parent.popThumb; >