NvOCŎg774Ǝ@\

 show{^
jQuery̗͂ɂANbNiframeɕϐg܂B


Match
^(?:https?://(?:www\.|m\.)?youtube\.(?:com|jp)/(?:watch\?(?:.*&)?(?:v|video_id)=|v/)|(?:https?://youtu\.be/|https://www\.youtube-nocookie\.com/v/))([\w\-_]+)(?:.*)?$

Replace
<img class="preview-video-switch" src="img/show.png" alt="show" data-video_url="https://www.youtube.com/embed/\1" data-video_width="640" data-video_height="360" data-video_harf="0" data-video_option='{"allowfullscreen":"1"}'>

data-video_url(K{) iframesrc
data-video_width(K{) iframewidth
data-video_height(K{) iframeheight
data-video_style(IvV) iframestyle
data-video_harf(IvV) 1ɂwidthheightɂȂ܂
data-video_option(IvV) Javascript̘Azz`iframe̒ǉw肵܂BOƒl͕KyAłKv܂B

 萔
NvOCReplaceɈȉ̍ڂw肷ƁA̓eɕϊ܂B
E$atag rep2̐ݒƐڑ[ɉea^Oɕϊ܂B
$atag̈
Match
^(?:https?://(?:www\.|m\.)?youtube\.(?:com|jp)/(?:watch\?(?:.*&)?(?:v|video_id)=|v/)|(?:https?://youtu\.be/|https://www\.youtube-nocookie\.com/v/))([\w\-_]+)(?:.*)?$

Replace
$atag <div class="preview-video"><iframe style="width:640px;height:360px;max-width:100%;border:none" src="//www.youtube.com/embed/\1" allowfullscreen></iframe></div>

iframe_popup=upłvɐݒ肵ԂłPCANZXꍇ$atag
u<a href="$ime_url" target="_blank" onmouseover="showHtmlPopUp('$ime_url',event,0.2)" onmouseout="offHtmlPopUp()">(p)</a><a href="$url" target="_blank">$str</a>vɕϊ܂B