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

#-----------------------------------------------------------------------------------------
[Replace]
Name = 動画説明全文読み込み(ranking)
URL = www\.nicovideo\.jp/ranking/
Multi = TRUE
Match<
\.\.\.(?=</p>(?s:.+?)href="/mylistcomment/video/([^"]+)")
>
Replace<
<span onclick="getFullDesc(this,'$1');" class="nl_Desc" nl-smid="$1">...</span>
>

#----------------------------------------------------------------------------------------
[Replace]
Name = 動画説明全文読み込み(mylist)
URL = www\.nicovideo\.jp/mylist/
Match<
(?<=title\|word_wrap\}</a></p>)
>
Replace<
<p class="font12"><span onclick="getFullDesc(this,'{\$item.item_data.video_id}')" class="nl_Desc" nl-smid="{\$item.item_data.video_id}">...</span></p>
>

#----------------------------------------------------------------------------------------
[Replace]
Name = 動画説明全文読み込み(my/history)
URL = www\.nicovideo\.jp/my/history
Multi = TRUE
Match<
<h5><a href="watch/([^"]+)".+?</h5>
>
Replace<
$0<p><span onclick="getFullDesc(this,'$1')" class="nl_Desc" nl-smid="$1">...</span></p>
>

#----------------------------------------------------------------------------------------
[Replace]
Name = 動画説明全文読み込み(my/mylist)
URL = www\.nicovideo\.jp/my/mylist
Match<
id="tpl_mylistitem_video"(?s:.+?)</a></h5>
>
Replace<
$0<p class="font12"><span onclick="getFullDesc(this,'{\$item.item_data.video_id}')" class="nl_Desc" nl-smid="{\$item.item_data.video_id}">...</span></p>
>

#----------------------------------------------------------------------------------------
[Replace]
Name = 動画説明全文読み込み(コミュニティ)
URL = com\.nicovideo\.jp/video/
Multi = TRUE
Match<
(href="http://www\.nicovideo\.jp/mylistcomment/video/([^"]+)"(?:(?!\s+<p>)[^\n]+\n)+.+?)\.\.\.(?=</p>)
>
Replace<
$1<span onclick="getFullDesc(this,'$2')" class="nl_Desc" nl-smid="$2">...</span>
>

#----------------------------------------------------------------------------------------
#[Replace]
Name = 動画説明全文読み込み(search|tag)
URL = www\.nicovideo\.jp/(search|tag)/
Multi = TRUE
Match<
(class="itemTitle">\r?\n.+?href="/watch/([^"\?]+)(?:(?!\s+<p)[^\n]+\n)+.+?)\.\.\.(?=</p>)
>
Replace<
$1<span onclick="getFullDesc(this,'$2')" class="nl_Desc" nl-smid="$2">...</span>
>

#-----------------------------------------------------------------------------------------
[Replace]
Name = 動画説明全文読み込み(js埋め込み)
URL = (?:www\.nicovideo\.jp/(?:(?:ranking|mylist|search|tag)/|my/(?:history|mylist))|com\.nicovideo\.jp/video/)
Match<
(?=</body>)
>
Replace<
<style type="text/css">.nl_Desc:hover{text-decoration:underline; cursor:pointer; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; user-select:none;}</style><CRLF>
<script type="text/javascript" charset="utf-8" src="/$TS(local/nlThumbInfoRewriter_FA.js)" defer></script><CRLF>
>