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


[Replace]
Name = 動画id保存[削除動画用]
URL = www\.nicovideo\.jp/watch/[a-z]{2}[0-9]{1,12}
Require = &quot;isDeleted&quot;:true
AddVariable = dougaID2
ContentType = text/html
Match<
("|&quot;)video\1:\{\1id\1:\1[a-z]{2}(\d+)
>
Replace<
$2
>


[Replace]
Name = watch:削除動画URL書き換え [HTML5]
URL = www\.nicovideo\.jp/watch/[a-z]{2}[0-9]{1,12}
Require = &quot;isDeleted&quot;:true
ContentType = text/html
Match<
("|&quot;)(smileInfo\1:\{\1url\1:\1).+?\1
>
Replace<
$1$2http:\/\/smile-pcm00.nicovideo.jp\/smile?m=<nlVar:dougaID2>\.0$1
>


[Replace]
Name = watch:タイトル書き換え [HTML5]
URL = www\.nicovideo\.jp/watch/[a-z]{2}[0-9]{1,12}
Require = &quot;isDeleted&quot;:true
ContentType = text/html
Match<
("|&quot;)(title\1:\1.+?)\1
>
Replace<
$1$2\（削除済\）$1
>

[Replace]
Name = watch:サムネ書き換え [HTML5]
URL = www\.nicovideo\.jp/watch/[a-z]{2}[0-9]{1,12}
Require = &quot;isDeleted&quot;:true
Match<
("|&quot;)(thumbnailURL\1:\1).+?\1
>
Replace<
$1$2http:\/\/tn-skr1.smilevideo.jp\/smile?i=<nlVar:dougaID2>$1
>


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

[Replace]
Name = watch:削除動画でキャッシュ利用 [GINZA]
URL = www\.nicovideo\.jp/watch/
Require = &quot;Deleted&quot;:1
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,
>