# nlフィルタ定義(文字コード判定用なのでこの行は削除しないこと) # 12/05/31 (2013-02-18) # ポップアップ用スクリプト埋め込み [Replace] Name = ポップアップ用スクリプト埋め込み #URL = (?:www|ch|com)\.nicovideo\.jp/(?:$|category_recent.php|\?g|tag/|search/|thumb/|newarrival|recent|api/getthumbinfo/|mylist/|my/mylist|ranking|history|user/|hotlist|channel/|search_video/|watch/|video/|top/) URL = (?!ads|.*api)[^/]+\.nicovideo\.jp/(?!api/|thumb[_/]|embed/) ContentType = text/html Match< (?=) > Replace< > # 上から順に、 # コミュニティ(co)をリンク、それ以外のsmid系、 # mylist/userへのリンク、視聴履歴内動画タイトル [Replace] Name = ポップアップリンク置換(検索系) URL = (?:www|ext|ch|com)\.nicovideo\.jp/(?:$|category_recent\.php|\?g|tag/|search/|newarrival|recent|ranking|history|user/|myvideo/|hotlist|channel/|search_video/|video/|top/|video_top) ContentType = text/(?:html|xml) Multi = TRUE EachLine = TRUE Match< co\d{1,8}+(?!["\\'?.]|"|low||.*(?:|class="search"|style="width:200px;">|unescapeHTML|">[\r\n])|.+\}\);|.+,cc:\d+.*\}) (?|[^>]*(?:|class="search"|style="width:200px;">|unescapeHTML|">[\r\n])|.+\}\);|.+,cc:\d+.*\}) (?:mylist|user)/\d{1,8}+(?:/\d++|)(?!["\\'?.]|"|.+|.*">[\r\n]|[^<]*>||<\\|.+\}\);|.+,cc:\d+.*\}) > Replace< $0 $0 $0 > [Replace] Name = ポップアップリンク置換(getthumbinfo) URL = ext\.nicovideo\.jp/api/getthumbinfo/\w{2}\d+\?nlFilter Multi = TRUE EachLine = TRUE Match< (?i)h?(ttps?://[a-z0-9:./?!&\-~#=_%;+]+)(?![^<>]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]*]*>|[^<>]* Replace< $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 > [Replace] Name = ポップアップ追加(getthumbinfo) URL = ext\.nicovideo\.jp/api/getthumbinfo/\w{2}\d+\?nlFilter Multi = TRUE EachLine = TRUE Match< ) ) > Replace< $0 onMouseOver="popThumb2('$1', 0)" onMouseOut="nd()" $0 onMouseOver="popThumb2('$1', 0)" onMouseOut="nd()" class="watch" > [Replace] Name = ポップアップ追加(Jarty系ページ) URL = www\.nicovideo\.jp/(?:mylist/\d+|my/mylist|my/history|recommendations) EachLine = TRUE Multi = TRUE Match< Replace< $0 onMouseOver="return popThumb2('$1',0)" onMouseOut="return nd()" $0 onMouseOver="return popThumb2('$1',0)" onMouseOut="return nd()" $0 onMouseOver="return popThumb2('$1',0)" onMouseOut="return nd()" > # .js はブラウザにキャッシュされてるので、初回&修正時は # ブラウザのキャッシュクリアが必要 [Replace] Name = ポップアップ追加(mylist説明文) URL = res\.nimg\.jp/js/mylist2\.js Match< '' \+ match\[0\] \+ ''; > Replace< '' + match[0] + ''; > [Replace] Name = ポップアップ追加(wwwドメイン汎用) URL = www\.nicovideo\.jp/ ContentType = text/(?:html|plain|xml) Multi = TRUE Match< (]+href="\s*(?:|/|[^"]+?(?:video|live)_?id=| [^"]*?http://(?:www|live|ch|com|seiga)\.nicovideo\.jp/(?:gate/)?| http://rd\.nicovideo\.jp/cc/[^/]+/) ((?:watch/|mylist/|user/|channel/|community/|seiga/)?(?:(?:(?!nw|pk|ap)\w{2})\d+|#id#))(?:[\?&][^"]*)?" (?:(?!popThumb|title=)[^>])*(?: title="[^"]+"(?:(?!vocaloid_top)[^>])*)?)(>\s*+) (?! Replace< $1 onMouseOver="return popThumb2('$2', 0)" onMouseOut="return nd()"$3 > # kakorokuRecorderが誤パースするのでwatch/lv〜を対象から外す [Replace] Name = ポップアップ追加(wwwドメイン以外汎用) URL = (?!www)[^/]+\.nicovideo\.jp/(?!api/|thumb[_/]|embed/|watch/lv\d+) ContentType = text/html Multi = TRUE Match< (]+href="\s*(?:[^"]+?(?:video|live)_?id=| [^"]*?http://(?:www|live|ch|com|seiga)\.nicovideo\.jp/(?:gate/)?| http://rd\.nicovideo\.jp/cc/nicotop_[^/]+/) ((?:watch/|mylist/|user/|channel/|community/|seiga/)?(?:\w{2}\d+|#id#))(?:[\?&][^"]*)?" (?:(?!popThumb|timeshift_watch|title=)[^>])*(?: title="[^"]+"[^>]*)?)(>\s*+)(?! Replace< $1 onMouseOver="return popThumb2('$2', 0)" onMouseOut="return nd()"$3 > [Replace] Name = ポップアップ追加(flog) (2013-02-18) URL = www\.nicovideo\.jp/(?:$|video_top|category_recent\.php) Multi = TRUE EachLine = TRUE Match< ]*>\s*]+?href="[^"]+[?&]cc_id=#link#"[^!]+?href="[^"]+[?&]cc_id=#link#" \{link:"(\w{2}\d+)" > Replace< $0 onMouseOver="return popThumb2('#id#', 0);" onMouseOut="return nd();" $0,id:"$1" > [Replace] Name = ポップアップ追加(new_list) (2013-02-18) URL = res\.nimg\.jp/js/category\.js Multi = FALSE EachLine = FALSE Match<
Replace< $0 onMouseOver="return popThumb2(' + "'" + video.id + "'" + ', 0);" onMouseOut="return nd();" >