# nlフィルタ定義(文字コード判定用なのでこの行は削除しないこと)
#20170226
#20170313

[Replace]
Name = watch:削除動画URL書き換え [HTML5]
URL = www\.nicovideo\.jp/watch/
idGroup = 3
Match<
(("|&quot;)video\2:\{\2id\2:\2[a-z]{2}(\d+).+?smileInfo\2:\{\2url\2:\2).+?\2
>
Replace<
$1http:\/\/smile-pcm00.nicovideo.jp\/smile?m=$3.0<$low>$2
>

[Replace]
Name = watch:削除サムネ書き換え [HTML5]
URL = www\.nicovideo\.jp/watch/
idGroup = 3
Match<
(("|&quot;)video\2:\{\2id\2:\2[a-z]{2}(\d+).+?thumbnailURL\2:\2).+?\2
>
Replace<
$1http:\/\/tn-skr1.smilevideo.jp\/smile?i=$3$2
>

[Replace]
Name = watch:削除ステータス(isDeleted)書き換え
URL = www\.nicovideo\.jp/watch/
EachLine=TRUE
Match<
((&quot;)title\2:\2.+?)\2(.+?isDeleted\2:)true
&quot;deleted&quot;:1
>
Replace<
$1\(削除動画：キャッシュ利用\)$2$3false
&quot;deleted&quot;:0
>


#ついでにswfの削除動画用にflashのも。

[Replace]
Name = watch:削除動画でキャッシュ利用 [GINZA]
URL = www\.nicovideo\.jp/watch/
idGroup = 4
Match<
(url%3D).+?(%26ms%3D.+?("|&quot;)videoId\3:\3[a-z]{2}(\d+)\3.+?\3deleted\3:)\3[1-9][0-9]*\3,
>
Replace<
$1http%253A%252F%252Fsmile-pcm00.nicovideo.jp%252Fsmile%253Fm%253D$4.0as3<$low>$2$30$3,
>