# 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(?![^>]*/>)(?:(?!\1\b).)*)h?(ttps?://(?:(?!\.{3})[\w\-\.\!~\*'\(\);/\?:@&=\+\$,%#])++)(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)[\x01-\x7F]+@(([-a-z0-9]+\.)+[a-z]+|\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)niconicommons.jp/user/\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)(?:clip|user/)/\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)(?:mylist|user)/\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)watch/\d{10}(?:[#\?][\w:_\-&=]*+|)(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)(?:sm|nm|so|ca|ax|yo|nl|ig|na|cw|z[a-e]|om|sk|yk)\d{1,9}(?:[\?#][\w:_\-&=]*+|)(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)co\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)ch\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)lv\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)(?:sg|mg)\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)im\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)ap\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!]*/>)(?:(?!\1\b).)*)nc\d{1,9}(?!\d|\.{3}|[^<]*>|(?:(?!
Replace<
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
$0
>
[Replace]
Name = ポップアップリンク置換(ニコニ広告)
URL = res\.nimg\.jp/js/(?:top_|)uad_embed\.js
Multi = TRUE
Match<
(]*href="[^">]*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<
(