#contents

----

*FAQ [#k336c493]

**リンクプラグインとは? [#hdc2fc0b]
レス内のリンクを任意のHTMLに置き換える機能です。~
標準では「板・スレッドのリンク」「ImageCache2」「YouTubeプレビュー」「外部リンク」などが組み込まれています。~
標準では「板・スレッドのリンク」「ImageCache2」「外部リンク」などが組み込まれています。~
リンクプラグインを追加することで、例えば以下のようなことができるようになります。
-2ch互換掲示板のスレッドのURL→p2で開けるようにリンク
-AmazonのURL→商品名と画像
-DailymotionのURL→埋め込み動画
-YouTubeのURL→埋め込み動画
-TwitterのURL→ツイート

**リンクプラグインはどういう順番で動く? [#lba9eb5c]
+p2が内部リンクする板・スレッドのリンク
+リンクプラグイン(上から順に)
+その他内蔵リンクプラグイン(ImageCache2など)
+外部リンク

いずれかのリンクプラグインが適用されると、以降のリンクプラグインはスルーされます。~
つまり、以下のような事が言えます。
-p2が内部リンクする板・スレッドのリンクにリンクプラグインは働かない
-リンクプラグインが働いたリンクに置換画像URLは働かない
-URLが複数のリンクプラグインにマッチする場合でも、一番上にあるリンクプラグインしか適用されない。

**SSLでp2を使っている時だけ一部のリンクプラグインが動作しない [#ta97098e]
ブラウザ側でSSLから非SSLのURLのアクティブコンテンツがブロックされているのが原因です。~
Firefoxの場合、security.mixed_content.block_active_contentをtrueにすれば解除できます。
Firefoxの場合、security.mixed_content.block_active_contentをfalseにすれば解除できます。

*リンクプラグインリスト [#j49eda88]
追加する場合、以下の書式でタイトル順に並べて下さい。
 **サイト名
 備考(あれば)
 :Match|
  Matchの内容
 :Replace|
  Replaceの内容
同じサイトで複数のリンクプラグインがある場合、***で階層化するかReplaceを並べるなどして記述を工夫して下さい。~
同じサイトで複数のリンクプラグインがある場合、****で階層化するかReplaceを並べるなどして記述を工夫して下さい。~
変更する場合、サイト名の横に(2015/04/30更新)などと更新日時を書いて下さい。

**2ちゃんねる互換掲示板のスレッド [#cc0a357f]
**httpのみ [#o496f0d6]

***2ちゃんねる互換掲示板のスレッド [#cc0a357f]
p2で内部リンクされないスレッドに内部リンクする。
:Match|
 ^http://(.+)/test/read\.cgi/(.+)/(\d+)(?:/(.*))$
:Replace(画像P付き)|
 <a href="read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4" onmouseover="showHtmlPopUp('read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4;one=true',event,0.2)" onmouseout="offHtmlPopUp()"><img src="img/pop.png" alt="" align="top" border="0" height="12" hspace="2" vspace="0" width="12"></a><a href="read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4">$str</a>
:Replace(文字p付き)|
 <a href="read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4" onmouseover="showHtmlPopUp('read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4;one=true',event,0.2)" onmouseout="offHtmlPopUp()">(p)</a><a href="read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4">$str</a>
:Replace(pなし)|
 <a href="read.php?host=\1&amp;bbs=\2&amp;key=\3&amp;ls=\4">$str</a>

**Amazon.co.jp [#ub01a839]
***はてなブックマーク (2015/05/12更新) [#of2fd0ad]
:Match|
 ^https?://(?:www\.)?amazon\.(?:co\.)jp/(?:gp/product|(?:.*?/)?dp)/(\w+).*$
 ^http://b\.hatena\.ne\.jp/entry/(.+)$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="//rcm-fe.amazon-adsystem.com/e/cm?t=1&o=9&p=8&l=as1&asins=\1&lt1=_blank&f=ifr" style="width:120px;height:240px;" scrolling="no"></iframe>
 $atag<br><iframe src="http://b.hatena.ne.jp/entry.parts?url=http://\1" scrolling="no" style="margin:0;width:500px;height:230px;max-width:100%;border:none"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="http://b.hatena.ne.jp/entry.parts?url=http://\1" data-video_style="margin:0;width:500px;height:230px;max-width:100%;border:none" data-video_option='{"scrolling":"no"}'>

**Dailymotion (2015/05/01更新) [#rba315f3]
***ニコニコ動画 (動画) [#h661063f]
ショートURL・NicoGame・NicoFinder・ニコニコ見学に対応。
:Match|
 ^http://(?:nico\.ms|(?:(?:www\.|sp\.)?nicovideo\.jp|(?:www\.)?nicofinder\.net|nicogame\.info|)/watch|nico3\.org)/([sn]m\d+).*$
:Replace(外部プレイヤー)|
 $atag<br><script type="text/javascript" src="http://ext.nicovideo.jp/thumb_watch/$1"></script>
:Replace(動画のサムネイルと詳細情報)|
 $atag<br><iframe src="http://ext.nicovideo.jp/thumb/\1" scrolling="no" style="width:312px;height:176px;border:solid 1px #CCC"></iframe>
:Replace(動画のサムネイルと詳細情報・showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="http://ext.nicovideo.jp/thumb/\1" data-video_style="width:312px;height:176px;border:solid 1px #CCC">

***ニコニコ動画(マイリスト) [#kdb4717f]
:Match|
 ^http://(?:www\.nicovideo\.jp/mylist/|http://nico\.ms/mylist)(\d+)(?:/nicorepo)?$
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="http://ext.nicovideo.jp/thumb_mylist/\1" data-video_style="width:312px;height:176px;border:solid 1px #CCC" data-video_option='{"scrolling":"no"}'>

***ニコニコ実況 [#d9245ed4]
:Match|
 ^http://(?:live\.nicovideo\.jp/watch|nico\.ms)/lv\(d+)$
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="http://live.nicovideo.jp/embed/lv\1" data-video_style="width:312px;height:176px;border:solid 1px #CCC">

***ニコニコミュニティ [#sfc742f6]
:Match|
 ^http://(?:com\.nicovideo\.jp/community|nico\.ms)/co\(d+)$
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="http://ext.nicovideo.jp/thumb_community/co\1" data-video_style="width:312px;height:176px;border:solid 1px #CCC">

**http, https両対応 [#w83d1b20]

***AnySex.com [#l3a8cf81]
:Match|
 ^https?://anysex\.com/(\d+)/$
:Replace|
 $atag<br><iframe src="https://anysex.com/embed/\1" style="width:720px;height:431px;border:none;max-width:100%" allowfullscreen></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://anysex.com/embed/\1" data-video_style="width:720px;height:431px;border:none;max-width:100%" data-video_option='{"allowfullscreen":"1"}'>

***Amazon.co.jp (2015/05/13更新) [#ub01a839]
:Match|
 ^https?://(?:www\.)?amazon\.(?:co\.)?jp/(?:gp/product|(?:.*?/)?dp)/(\w+).*$
:Replace|
 $atag<br><iframe src="//rcm-fe.amazon-adsystem.com/e/cm?t=1&o=9&p=8&l=as1&asins=\1&lt1=_blank&f=ifr" style="width:120px;height:240px;max-width:100%" scrolling="no"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="//rcm-fe.amazon-adsystem.com/e/cm?t=1&o=9&p=8&l=as1&asins=\1&lt1=_blank&f=ifr" data-video_style="width:120px;height:240px;max-width:100%" data-video_option='{"scrolling":"no"}'>

***Dailymotion (2015/05/09更新) [#rba315f3]
ウィンドウからはみ出ないように変更。
:Match|
 ^http://(?:dai.ly|www\.dailymotion\.com/video)/([\w^_]+).*$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe style="width:480px;height:270px;max-width:100%;border:none" src="//www.dailymotion.com/embed/video/\1" allowfullscreen></iframe>
 $atag<br><iframe style="width:480px;height:270px;max-width:100%;border:none" src="//www.dailymotion.com/embed/video/\1" allowfullscreen></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" alt="show" data-video_url="//www.dailymotion.com/embed/video/\1" data-video_style="width:480px;height:270px;max-width:100%;border:none" data-video_option='{"allowfullscreen":"1"}'>

**FC2動画 [#y8b3d4d9]
***ExtremeTube.com (2017/10/30更新) [#s668d67d]
:Match|
 ^http://video\.fc2\.com/(?:\w{2}/)?(?:a/)?content(?:\.php\?.*kobj_up_id=|/(?:[^/]+/)?)([^?#&/]+).*$
 ^https?://www\.extremetube\.com/video/([a-z0-9\-]+)$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><script src="http://static.fc2.com/video/js/outerplayer.min.js" url="http://video.fc2.com/ja/a/content/\1" tk="" tl="" sj="" d="" w="448" h="284" suggest="off" charset="UTF-8"></script> 
 $atag<br><iframe src="https://www.extremetube.com/embed/\1" style="border:none;height:481px;width:608px;max-width:100%" scrolling="no"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://www.extremetube.com/embed/\1" data-video_style="border:none;height:481px;width:608px;max-width:100%" data-video_option='{"scrolling":"no"}'>

**Google ドキュメント [#ue8d2075]
***FC2動画 (2017/10/30更新) [#y8b3d4d9]
:Match|
 ^https?://docs.google.com/document/d/([\w^_](?:/.*?)$
 ^https?://video\.fc2\.com/(?:\w{2}/)?(?:a/)?content(?:\.php\?.*kobj_up_id=|/(?:[^/]+/)?)([^?#&/]+).*$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="https://docs.google.com/document/d/\1/pub?embedded=true"></iframe>
 $atag<br><script src="https://static.fc2.com/video/js/outerplayer.min.js" url="https://video.fc2.com/ja/a/content/\1" tk="" tl="" sj="" d="" w="448" h="284" suggest="off" charset="UTF-8"></script> 

**Google スライド [#c4935659]

***GitHub Gist [#w2e3d442]
:Match|
 ^https?://docs.google.com/presentation/d/([\w^_](?:/.*?)$
 ^(https://gist\.github(?:usercontent)?\.com/\w+/[a-z0-9]+)(?:\.pibb|/.*)?$
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="\1.pibb" data-video_style="border:none;width:100%">

***Google スプレッドシート (2015/05/12更新) [#x603fba4]
:Match|
 ^https?://docs.google.com/spreadsheets/d/([\w^_](?:/.*?))$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="https://docs.google.com/presentation/d/\1/embed?start=false&loop=false&delayms=3000" style="border:none;width:480px;height:299px;max-width:100%" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
 $atag<br><iframe src="https://docs.google.com/spreadsheets/d/\1/pubhtml?widget=true&amp;headers=false"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://docs.google.com/spreadsheets/d/\1/pubhtml?widget=true&amp;headers=false">

**Google スプレッドシート [#x603fba4]
***Google ドキュメント (2015/05/12更新) [#ue8d2075]
:Match|
 ^https?://docs.google.com/spreadsheets/d/([\w^_](?:/.*?)$
 ^https?://docs.google.com/document/d/([\w^_](?:/.*?))$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="https://docs.google.com/spreadsheets/d/\1/pubhtml?widget=true&amp;headers=false"></iframe>
 $atag<br><iframe src="https://docs.google.com/document/d/\1/pub?embedded=true"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://docs.google.com/document/d/\1/pub?embedded=true">

**はてなブックマーク [#of2fd0ad]
***Google スライド (2015/05/12更新) [#c4935659]
:Match|
 ^http://b\.hatena\.ne\.jp/entry/(.+)$
 ^https?://docs.google.com/presentation/d/([\w^_](?:/.*?))$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="http://b.hatena.ne.jp/entry.parts?url=http://\1" scrolling="no" style="margin:0;width:500px;height:230px;max-width:100%;border:none"></iframe>
 $atag<br><iframe src="https://docs.google.com/presentation/d/\1/embed?start=false&loop=false&delayms=3000" style="border:none;width:480px;height:299px;max-width:100%" allowfullscreen="true"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://docs.google.com/presentation/d/\1/embed?start=false&loop=false&delayms=3000" data-video_style="border:none;width:480px;height:299px;max-width:100%" data-video_option='{"allowfullscreen":"true"}'>

**Imgur [#q6b0ac4f]
ImageCache2を使っているのであれば、置換画像URLの方が良い。
***Imgur(アルバム) (2022/02/07更新) [#h21f4d9b]
:Match|
 ^http://imgur\.com/([\w^_]{7})$
 ^https?://imgur\.com/(a/[\w^_]+)(?:#.*|/.*)?$
:Replace|
 <blockquote class="imgur-embed-pub" data-id="\1"></blockquote><script async src="http://s.imgur.com/min/embed.js" charset="utf-8"></script>
 <blockquote class="imgur-embed-pub" lang="en" data-id="\1" data-context="false" ><a href="//imgur.com/\1"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
:Replace(showボタン)|
 <img class="preview-video-switch" src="img/show.png" data-video_url="//imgur.com/\1/embed" data-video_style="width:100%;height:550px;border:none">
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="//imgur.com/\1/embed" data-video_style="width:100%;height:550px;border:none">

**Instgram [#r99cff32]
***Imgur(画像1枚) (2019/02/27更新) [#q6b0ac4f]

ImageCache2を使っているのであれば、[[置換画像URL>置換画像URL#ib95d771]]の方が良い。
:Match|
 ^https://instagram\.com/p/([\w^_]+).*$
 ^https?://imgur\.com/([\w^_]{7})$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="http://instagram.com/p/\1/embed" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0;width:320px;height:400px" scrolling="no"></iframe>
 <blockquote class="imgur-embed-pub" data-id="\1"></blockquote><script async src="https://s.imgur.com/min/embed.js" charset="utf-8"></script>

**ニコニコ動画 (2015/05/07更新) [#na72ea2c]
ショートURL・NicoGame・NicoFinder・ニコニコ見学に対応。
:Match|
 ^http://(?:nico\.ms|(?:(?:www\.|sp\.)?nicovideo\.jp|(?:www\.)?nicofinder\.net|nicogame\.info|)/watch|nico3\.org)/([\w^_]+).*$
:Replace(外部プレイヤー)|
 <a href="$ime_url" target="_blank">$str</a><br><script type="text/javascript" src="http://ext.nicovideo.jp/thumb_watch/$1"></script>
:Replace(動画のサムネイルと詳細情報)|
 <a href="$ime_url" target="_blank">$str</a><br><iframe width="312" height="176" src="http://ext.nicovideo.jp/thumb/\1" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"></iframe>
 ^https?://i.imgur\.com/([\w]+)(.*)?$
:Replace|
 $atag<br /><blockquote class="imgur-embed-pub" lang="en" data-id="\1"><a href="//imgur.com/\1"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>

**pastebin [#sf3b4693]
***Instgram (2017/11/22更新) [#r99cff32]
:Match|
 ^https://(?:www\.)?instagram\.com/p/([\w^_]+).*$
:Replace|
 $atag<br><iframe src="https://instagram.com/p/\1/embed" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:100%; padding:0;width:320px;height:400px" scrolling="no"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://instagram.com/p/\1/embed" data-video_style="background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:100%; padding:0;width:320px;height:400px">

***pastebin [#sf3b4693]
:Match|
 ^https?://(?:www\.)?pastebin\.ca/(\d+)$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="//pastebin.ca/embed.php/\1.html" style="border:none;width:100%"></iframe>
 $atag<br><iframe src="//pastebin.ca/embed.php/\1.html" style="border:none;width:100%"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="//pastebin.ca/embed.php/\1.html" data-video_style="border:none;width:100%">

**Pastebin.com [#sb344cb3]
***Pastebin.com (2017/10/29更新)[#sb344cb3]
:Match|
 ^http://pastebin\.com/(\w+)$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><iframe src="http://pastebin.com/embed_iframe.php?i=\1" style="border:none;width:100%"></iframe>
 $atag<br><iframe src="//pastebin.com/embed_iframe.php?i=\1" style="border:none;width:100%"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="//pastebin.com/embed_iframe.php?i=\1" data-video_style="border:none;width:100%">

**pixiv [#cdc25a16]
非SSLで使うとリファラが作者に漏れるので、リファラ漏れ対策をすること。~
***pixiv (2017/10/30更新) [#cdc25a16]
SSLで使うとリファラが作者に漏れるので、リファラ漏れ対策をすること。~
置換画像URLと違い、題名と作者名も表示される。
:Match|
 ^http://(?:www\.)?pixiv\.net/member_illust.php\?.*illust_id=(\d+).*$
 ^https?://(?:www\.)?pixiv\.net/member_illust.php\?.*illust_id=(\d+).*$
:Replace|
 <iframe src="http://embed.pixiv.net/code.php?id=\1_0" width="380" height="168" style="background:transparent" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
 <iframe src="https://embed.pixiv.net/code.php?id=\1_0" style="width:380px;height:168px;margin:0;border:none;background:transparent" scrolling="no"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://embed.pixiv.net/code.php?id=\1_0" data-video_style="width:380px;height:168px;margin:0;border:none;background:transparent" data-video_option='{"scrolling":"no"}'>

**食べログ [#v35d1978]
店名は表示されない。
***Pornhub (2017/10/30更新) [#a066b531]
:Match|
 ^http://tabelog\.com/\w+/A\d+/A\d+/(\d+)/?.*$
 ^https?://(?:\w+\.)?pornhub\.com/(?:embed/|view_video\.php\?viewkey=)(\w+).*$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><script src="http://tabelog.com/badge/google_badge?escape=false&rcd=\1" type="text/javascript" charset="utf-8"></script>
 $atag<br><iframe src="https://www.pornhub.com/embed/\1" style="width:560px;height:340px;max-width:100%;border:none" scrolling="no"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" alt="show" data-video_url="https://www.pornhub.com/embed/\1" data-video_style="width:560px;height:340px;max-width:100%;border:none" data-video_option='{"scrolling":"no"}'>

**Twitter (2015/05/01更新)[#a74d5be2]
***Twitter (2017/10/29更新)[#a74d5be2]
:Match|
 ^https?://(?:mobile\.)?twitter\.com/(.+?/status/.+)$
:Replace(レスポップアップで副作用あり)|
 <a href="$ime_url" target="_blank">$str</a><br><blockquote class="twitter-tweet" style="width:250px;height:250px"><a href="https://twitter.com/\1"></a></blockquote><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
 $atag<br><blockquote class="twitter-tweet" style="width:250px;height:250px"><a href="https://twitter.com/\1"></a></blockquote><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
:Replace(サイズ調整されない)|
 <a href="$ime_url" target="_blank">$str</a><br><iframe style="width:500px;max-width:100%;height:400px;border:none" srcdoc='<blockquote class="twitter-tweet" style="width:250px;height:250px"><a href="https://twitter.com/\1"></a></blockquote><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>'></iframe>
 $atag<br><iframe style="width:500px;max-width:100%;height:400px;border:none" srcdoc='<blockquote class="twitter-tweet" style="width:250px;height:250px"><a href="https://twitter.com/\1"></a></blockquote><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>'></iframe>
:Replace(サイズ調整されない・Twitframe使用・showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_style="width:500px;max-width:100%;height:200px;border:none" data-video_url="//twitframe.com/show?url=https://twitter.com/\1">

**Vimeo [#ccf00d51]
***Vimeo [#ccf00d51]
:Match|
 ^https?://vimeo\.com/(\d+)$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe  style="width:500px;height:281px;max-width:100%;border:none" src="https://player.vimeo.com/video/\1?color=00adef&portrait=0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
 $atag<br><iframe  style="width:500px;height:281px;max-width:100%;border:none" src="https://player.vimeo.com/video/\1?color=00adef&portrait=0" allowfullscreen></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://player.vimeo.com/video/\1?color=00adef&portrait=0" data-video_style="width:500px;height:281px;max-width:100%;border:none" data-video_option='{"allowfullscreen":"1"}'>

**Vine [#mf364ccc]
***Vine [#mf364ccc]
:Match|
 ^https?://vine\.co/v/([\w^_]+).*$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="https://vine.co/v/\1/embed/simple" width="320" height="320" frameborder="0"></iframe>
 $atag<br><iframe src="https://vine.co/v/\1/embed/simple" style="width:320px;height:320px;border:none"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://vine.co/v/\1/embed/simple" data-video_style="width:320px;height:320px;max-width:100%;border:\'e">

**xHamster (2015/05/01更新) [#d9e25d01]
***xHamster (2015/05/01更新) [#d9e25d01]
ウィンドウからはみ出ないように変更。
:Match|
 https?://(?:(?:www|jp)\.)?(?:m\.)?xhamster\.com/movies/(\d+)/.+\.html$
:Repalce|
 <a href="$ime_url" target="_blank">$str</a><br><iframe style="width:510px;height:400px;max-width:100%;border:none" src="//xhamster.com/xembed.php?video=\1" scrolling="no"></iframe>
 $atag<br><iframe style="width:510px;height:400px;max-width:100%;border:\'e" src="//xhamster.com/xembed.php?video=\1" scrolling="no"></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="//xhamster.com/xembed.php?video=\1" data-video_style="width:510px;height:400px;max-width:100%;border:\'e" data-video_option='{"scrolling":"no"}'>

**XVIDEOS (2015/05/01更新) [#xc3204ff]
ウィンドウからはみ出ないように変更。
***XVIDEOS (2017/10/30更新) [#xc3204ff]
:Match|
 ^http://(?:www|jp)\.xvideos\.com/video(\d+)/.*$
 ^https?://(?:www|jp)\.xvideos\.com/video(\d+)/.*$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe src="http://flashservice.xvideos.com/embedframe/\1" style="width:510px;height:400px;max-width:100%;border:none" scrolling=no></iframe>
 $atag<br><iframe src="https://flashservice.xvideos.com/embedframe/\1" style="width:510px;height:400px;max-width:100%;border:\'e" scrolling=no></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://flashservice.xvideos.com/embedframe/\1" data-video_style="width:510px;height:400px;max-width:100%;border:\'e" data-video_option='{"scrolling":"no"}'>

**YouTube (2015/05/08更新) [#p9748ec9]
ビルトインよりもURLパターンの幅が広い。~
***YouTube (2015/05/08更新) [#p9748ec9]
ウィンドウからはみ出ないように変更。
:Match|
 ^(?:https?://(?:www\.|m\.|jp\.)?youtube\.(?:com|jp)/(?:watch\?(?:.*&)?(?:v|video_id)=|v/)|(?:https?://youtu\.be/|https://www\.youtube-nocookie\.com/v/))([\w\-]+)(?:.*)?$
:Replace|
 <a href="$ime_url" target="_blank">$str</a><br><iframe style="width:640px;height:360px;max-width:100%;border:none" src="//www.youtube.com/embed/\1" allowfullscreen></iframe>
 $atag<br><iframe style="width:640px;height:360px;max-width:100%;border:\'e" src="//www.youtube.com/embed/\1" allowfullscreen></iframe>
:Replace(showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="//www.youtube.com/embed/\1" data-video_style="width:640px;height:360px;max-width:100%;border:\'e" data-video_option='{"allowfullscreen":"1"}'>

***食べログ (2017/10/30更新) [#v35d1978]
店名は表示されない。
:Match|
 ^https?://tabelog\.com/\w+/A\d+/A\d+/(\d+)/?.*$
:Replace|
 $atag<br><script src="https://tabelog.com/badge/google_badge?escape=false&rcd=\1" type="text/javascript" charset="utf-8"></script>
:Replace(非公式・JavaScriptを使わない)|
 $atag<br><iframe src="https://tabelog.com/badge/google_badge_frame?rcd=\1" style="width:370px;height:510px;margin:0 !important;padding:0 !important;border:none" scrolling="no"></iframe>
:Replace(非公式・JavaScriptを使わない・showボタン)|
 $atag<img class="preview-video-switch" src="img/show.png" data-video_url="https://tabelog.com/badge/google_badge_frame?rcd=\1" data-video_style="width:370px;height:510px;margin:0 !important;padding:0 !important;border:none" data-video_option='{"scrolling":"no"}'>


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS