# 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 > [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< (]*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; >