リンクプラグイン
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
----
*FAQ [#k336c493]
**リンクプラグインとは? [#hdc2fc0b]
レス内のリンクを任意のHTMLに置き換える機能です。~
標準では「板・スレッドのリンク」「ImageCache2」「外部リン...
リンクプラグインを追加することで、例えば以下のようなこと...
-2ch互換掲示板のスレッドのURL→p2で開けるようにリンク
-AmazonのURL→商品名と画像
-YouTubeのURL→埋め込み動画
-TwitterのURL→ツイート
**リンクプラグインはどういう順番で動く? [#lba9eb5c]
+p2が内部リンクする板・スレッドのリンク
+リンクプラグイン(上から順に)
+その他内蔵リンクプラグイン(ImageCache2など)
+外部リンク
いずれかのリンクプラグインが適用されると、以降のリンクプ...
つまり、以下のような事が言えます。
-p2が内部リンクする板・スレッドのリンクにリンクプラグイン...
-リンクプラグインが働いたリンクに置換画像URLは働かない
-URLが複数のリンクプラグインにマッチする場合でも、一番上...
**SSLでp2を使っている時だけ一部のリンクプラグインが動作し...
ブラウザ側でSSLから非SSLのURLのアクティブコンテンツがブロ...
Firefoxの場合、security.mixed_content.block_active_conten...
*リンクプラグインリスト [#j49eda88]
追加する場合、以下の書式でタイトル順に並べて下さい。
**サイト名
備考(あれば)
:Match|
Matchの内容
:Replace|
Replaceの内容
同じサイトで複数のリンクプラグインがある場合、****で階層...
変更する場合、サイト名の横に(2015/04/30更新)などと更新日...
**httpのみ [#o496f0d6]
***2ちゃんねる互換掲示板のスレッド [#cc0a357f]
p2で内部リンクされないスレッドに内部リンクする。
:Match|
^http://(.+)/test/read\.cgi/(.+)/(\d+)(?:/(.*))$
:Replace(画像P付き)|
<a href="read.php?host=\1&bbs=\2&key=\3&ls=\...
:Replace(文字p付き)|
<a href="read.php?host=\1&bbs=\2&key=\3&ls=\...
:Replace(pなし)|
<a href="read.php?host=\1&bbs=\2&key=\3&ls=\...
***はてなブックマーク (2015/05/12更新) [#of2fd0ad]
:Match|
^http://b\.hatena\.ne\.jp/entry/(.+)$
:Replace|
$atag<br><iframe src="http://b.hatena.ne.jp/entry.parts?...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコ動画 (動画) [#h661063f]
ショートURL・NicoGame・NicoFinder・ニコニコ見学に対応。
:Match|
^http://(?:nico\.ms|(?:(?:www\.|sp\.)?nicovideo\.jp|(?:w...
:Replace(外部プレイヤー)|
$atag<br><script type="text/javascript" src="http://ext....
:Replace(動画のサムネイルと詳細情報)|
$atag<br><iframe src="http://ext.nicovideo.jp/thumb/\1" ...
:Replace(動画のサムネイルと詳細情報・showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコ動画(マイリスト) [#kdb4717f]
:Match|
^http://(?:www\.nicovideo\.jp/mylist/|http://nico\.ms/my...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコ実況 [#d9245ed4]
:Match|
^http://(?:live\.nicovideo\.jp/watch|nico\.ms)/lv\(d+)$
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコミュニティ [#sfc742f6]
:Match|
^http://(?:com\.nicovideo\.jp/community|nico\.ms)/co\(d+)$
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
**http, https両対応 [#w83d1b20]
***AnySex.com [#l3a8cf81]
:Match|
^https?://anysex\.com/(\d+)/$
:Replace|
$atag<br><iframe src="https://anysex.com/embed/\1" style...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Amazon.co.jp (2015/05/13更新) [#ub01a839]
:Match|
^https?://(?:www\.)?amazon\.(?:co\.)?jp/(?:gp/product|(?...
:Replace|
$atag<br><iframe src="//rcm-fe.amazon-adsystem.com/e/cm?...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Dailymotion (2015/05/09更新) [#rba315f3]
ウィンドウからはみ出ないように変更。
:Match|
^http://(?:dai.ly|www\.dailymotion\.com/video)/([\w^_]+)...
:Replace|
$atag<br><iframe style="width:480px;height:270px;max-wid...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ExtremeTube.com (2017/10/30更新) [#s668d67d]
:Match|
^https?://www\.extremetube\.com/video/([a-z0-9\-]+)$
:Replace|
$atag<br><iframe src="https://www.extremetube.com/embed/...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***FC2動画 (2017/10/30更新) [#y8b3d4d9]
:Match|
^https?://video\.fc2\.com/(?:\w{2}/)?(?:a/)?content(?:\....
:Replace|
$atag<br><script src="https://static.fc2.com/video/js/ou...
***GitHub Gist [#w2e3d442]
:Match|
^(https://gist\.github(?:usercontent)?\.com/\w+/[a-z0-9]...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Google スプレッドシート (2015/05/12更新) [#x603fba4]
:Match|
^https?://docs.google.com/spreadsheets/d/([\w^_](?:/.*?))$
:Replace|
$atag<br><iframe src="https://docs.google.com/spreadshee...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Google ドキュメント (2015/05/12更新) [#ue8d2075]
:Match|
^https?://docs.google.com/document/d/([\w^_](?:/.*?))$
:Replace|
$atag<br><iframe src="https://docs.google.com/document/d...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Google スライド (2015/05/12更新) [#c4935659]
:Match|
^https?://docs.google.com/presentation/d/([\w^_](?:/.*?))$
:Replace|
$atag<br><iframe src="https://docs.google.com/presentati...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Imgur(アルバム) (2022/02/07更新) [#h21f4d9b]
:Match|
^https?://imgur\.com/(a/[\w^_]+)(?:#.*|/.*)?$
:Replace|
<blockquote class="imgur-embed-pub" lang="en" data-id="\...
:Replace(showボタン)|
<img class="preview-video-switch" src="img/show.png" dat...
$atag<img class="preview-video-switch" src="img/show.png...
***Imgur(画像1枚) (2019/02/27更新) [#q6b0ac4f]
ImageCache2を使っているのであれば、[[置換画像URL>置換画像...
:Match|
^https?://imgur\.com/([\w^_]{7})$
:Replace|
<blockquote class="imgur-embed-pub" data-id="\1"></block...
:Match|
^https?://i.imgur\.com/([\w]+)(.*)?$
:Replace|
$atag<br /><blockquote class="imgur-embed-pub" lang="en"...
***Instgram (2017/11/22更新) [#r99cff32]
:Match|
^https://(?:www\.)?instagram\.com/p/([\w^_]+).*$
:Replace|
$atag<br><iframe src="https://instagram.com/p/\1/embed" ...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***pastebin [#sf3b4693]
:Match|
^https?://(?:www\.)?pastebin\.ca/(\d+)$
:Replace|
$atag<br><iframe src="//pastebin.ca/embed.php/\1.html" s...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Pastebin.com (2017/10/29更新)[#sb344cb3]
:Match|
^http://pastebin\.com/(\w+)$
:Replace|
$atag<br><iframe src="//pastebin.com/embed_iframe.php?i=...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***pixiv (2017/10/30更新) [#cdc25a16]
SSLで使うとリファラが作者に漏れるので、リファラ漏れ対策を...
置換画像URLと違い、題名と作者名も表示される。
:Match|
^https?://(?:www\.)?pixiv\.net/member_illust.php\?.*illu...
:Replace|
<iframe src="https://embed.pixiv.net/code.php?id=\1_0" s...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Pornhub (2017/10/30更新) [#a066b531]
:Match|
^https?://(?:\w+\.)?pornhub\.com/(?:embed/|view_video\.p...
:Replace|
$atag<br><iframe src="https://www.pornhub.com/embed/\1" ...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Twitter (2017/10/29更新)[#a74d5be2]
:Match|
^https?://(?:mobile\.)?twitter\.com/(.+?/status/.+)$
:Replace(レスポップアップで副作用あり)|
$atag<br><blockquote class="twitter-tweet" style="width:...
:Replace(サイズ調整されない)|
$atag<br><iframe style="width:500px;max-width:100%;heigh...
:Replace(サイズ調整されない・Twitframe使用・showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Vimeo [#ccf00d51]
:Match|
^https?://vimeo\.com/(\d+)$
:Replace|
$atag<br><iframe style="width:500px;height:281px;max-wi...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Vine [#mf364ccc]
:Match|
^https?://vine\.co/v/([\w^_]+).*$
:Replace|
$atag<br><iframe src="https://vine.co/v/\1/embed/simple"...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***xHamster (2015/05/01更新) [#d9e25d01]
ウィンドウからはみ出ないように変更。
:Match|
https?://(?:(?:www|jp)\.)?(?:m\.)?xhamster\.com/movies/(...
:Repalce|
$atag<br><iframe style="width:510px;height:400px;max-wid...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***XVIDEOS (2017/10/30更新) [#xc3204ff]
:Match|
^https?://(?:www|jp)\.xvideos\.com/video(\d+)/.*$
:Replace|
$atag<br><iframe src="https://flashservice.xvideos.com/e...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***YouTube (2015/05/08更新) [#p9748ec9]
ウィンドウからはみ出ないように変更。
:Match|
^(?:https?://(?:www\.|m\.|jp\.)?youtube\.(?:com|jp)/(?:w...
:Replace|
$atag<br><iframe style="width:640px;height:360px;max-wid...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***食べログ (2017/10/30更新) [#v35d1978]
店名は表示されない。
:Match|
^https?://tabelog\.com/\w+/A\d+/A\d+/(\d+)/?.*$
:Replace|
$atag<br><script src="https://tabelog.com/badge/google_b...
:Replace(非公式・JavaScriptを使わない)|
$atag<br><iframe src="https://tabelog.com/badge/google_b...
:Replace(非公式・JavaScriptを使わない・showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
終了行:
#contents
----
*FAQ [#k336c493]
**リンクプラグインとは? [#hdc2fc0b]
レス内のリンクを任意のHTMLに置き換える機能です。~
標準では「板・スレッドのリンク」「ImageCache2」「外部リン...
リンクプラグインを追加することで、例えば以下のようなこと...
-2ch互換掲示板のスレッドのURL→p2で開けるようにリンク
-AmazonのURL→商品名と画像
-YouTubeのURL→埋め込み動画
-TwitterのURL→ツイート
**リンクプラグインはどういう順番で動く? [#lba9eb5c]
+p2が内部リンクする板・スレッドのリンク
+リンクプラグイン(上から順に)
+その他内蔵リンクプラグイン(ImageCache2など)
+外部リンク
いずれかのリンクプラグインが適用されると、以降のリンクプ...
つまり、以下のような事が言えます。
-p2が内部リンクする板・スレッドのリンクにリンクプラグイン...
-リンクプラグインが働いたリンクに置換画像URLは働かない
-URLが複数のリンクプラグインにマッチする場合でも、一番上...
**SSLでp2を使っている時だけ一部のリンクプラグインが動作し...
ブラウザ側でSSLから非SSLのURLのアクティブコンテンツがブロ...
Firefoxの場合、security.mixed_content.block_active_conten...
*リンクプラグインリスト [#j49eda88]
追加する場合、以下の書式でタイトル順に並べて下さい。
**サイト名
備考(あれば)
:Match|
Matchの内容
:Replace|
Replaceの内容
同じサイトで複数のリンクプラグインがある場合、****で階層...
変更する場合、サイト名の横に(2015/04/30更新)などと更新日...
**httpのみ [#o496f0d6]
***2ちゃんねる互換掲示板のスレッド [#cc0a357f]
p2で内部リンクされないスレッドに内部リンクする。
:Match|
^http://(.+)/test/read\.cgi/(.+)/(\d+)(?:/(.*))$
:Replace(画像P付き)|
<a href="read.php?host=\1&bbs=\2&key=\3&ls=\...
:Replace(文字p付き)|
<a href="read.php?host=\1&bbs=\2&key=\3&ls=\...
:Replace(pなし)|
<a href="read.php?host=\1&bbs=\2&key=\3&ls=\...
***はてなブックマーク (2015/05/12更新) [#of2fd0ad]
:Match|
^http://b\.hatena\.ne\.jp/entry/(.+)$
:Replace|
$atag<br><iframe src="http://b.hatena.ne.jp/entry.parts?...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコ動画 (動画) [#h661063f]
ショートURL・NicoGame・NicoFinder・ニコニコ見学に対応。
:Match|
^http://(?:nico\.ms|(?:(?:www\.|sp\.)?nicovideo\.jp|(?:w...
:Replace(外部プレイヤー)|
$atag<br><script type="text/javascript" src="http://ext....
:Replace(動画のサムネイルと詳細情報)|
$atag<br><iframe src="http://ext.nicovideo.jp/thumb/\1" ...
:Replace(動画のサムネイルと詳細情報・showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコ動画(マイリスト) [#kdb4717f]
:Match|
^http://(?:www\.nicovideo\.jp/mylist/|http://nico\.ms/my...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコ実況 [#d9245ed4]
:Match|
^http://(?:live\.nicovideo\.jp/watch|nico\.ms)/lv\(d+)$
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ニコニコミュニティ [#sfc742f6]
:Match|
^http://(?:com\.nicovideo\.jp/community|nico\.ms)/co\(d+)$
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
**http, https両対応 [#w83d1b20]
***AnySex.com [#l3a8cf81]
:Match|
^https?://anysex\.com/(\d+)/$
:Replace|
$atag<br><iframe src="https://anysex.com/embed/\1" style...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Amazon.co.jp (2015/05/13更新) [#ub01a839]
:Match|
^https?://(?:www\.)?amazon\.(?:co\.)?jp/(?:gp/product|(?...
:Replace|
$atag<br><iframe src="//rcm-fe.amazon-adsystem.com/e/cm?...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Dailymotion (2015/05/09更新) [#rba315f3]
ウィンドウからはみ出ないように変更。
:Match|
^http://(?:dai.ly|www\.dailymotion\.com/video)/([\w^_]+)...
:Replace|
$atag<br><iframe style="width:480px;height:270px;max-wid...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***ExtremeTube.com (2017/10/30更新) [#s668d67d]
:Match|
^https?://www\.extremetube\.com/video/([a-z0-9\-]+)$
:Replace|
$atag<br><iframe src="https://www.extremetube.com/embed/...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***FC2動画 (2017/10/30更新) [#y8b3d4d9]
:Match|
^https?://video\.fc2\.com/(?:\w{2}/)?(?:a/)?content(?:\....
:Replace|
$atag<br><script src="https://static.fc2.com/video/js/ou...
***GitHub Gist [#w2e3d442]
:Match|
^(https://gist\.github(?:usercontent)?\.com/\w+/[a-z0-9]...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Google スプレッドシート (2015/05/12更新) [#x603fba4]
:Match|
^https?://docs.google.com/spreadsheets/d/([\w^_](?:/.*?))$
:Replace|
$atag<br><iframe src="https://docs.google.com/spreadshee...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Google ドキュメント (2015/05/12更新) [#ue8d2075]
:Match|
^https?://docs.google.com/document/d/([\w^_](?:/.*?))$
:Replace|
$atag<br><iframe src="https://docs.google.com/document/d...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Google スライド (2015/05/12更新) [#c4935659]
:Match|
^https?://docs.google.com/presentation/d/([\w^_](?:/.*?))$
:Replace|
$atag<br><iframe src="https://docs.google.com/presentati...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Imgur(アルバム) (2022/02/07更新) [#h21f4d9b]
:Match|
^https?://imgur\.com/(a/[\w^_]+)(?:#.*|/.*)?$
:Replace|
<blockquote class="imgur-embed-pub" lang="en" data-id="\...
:Replace(showボタン)|
<img class="preview-video-switch" src="img/show.png" dat...
$atag<img class="preview-video-switch" src="img/show.png...
***Imgur(画像1枚) (2019/02/27更新) [#q6b0ac4f]
ImageCache2を使っているのであれば、[[置換画像URL>置換画像...
:Match|
^https?://imgur\.com/([\w^_]{7})$
:Replace|
<blockquote class="imgur-embed-pub" data-id="\1"></block...
:Match|
^https?://i.imgur\.com/([\w]+)(.*)?$
:Replace|
$atag<br /><blockquote class="imgur-embed-pub" lang="en"...
***Instgram (2017/11/22更新) [#r99cff32]
:Match|
^https://(?:www\.)?instagram\.com/p/([\w^_]+).*$
:Replace|
$atag<br><iframe src="https://instagram.com/p/\1/embed" ...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***pastebin [#sf3b4693]
:Match|
^https?://(?:www\.)?pastebin\.ca/(\d+)$
:Replace|
$atag<br><iframe src="//pastebin.ca/embed.php/\1.html" s...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Pastebin.com (2017/10/29更新)[#sb344cb3]
:Match|
^http://pastebin\.com/(\w+)$
:Replace|
$atag<br><iframe src="//pastebin.com/embed_iframe.php?i=...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***pixiv (2017/10/30更新) [#cdc25a16]
SSLで使うとリファラが作者に漏れるので、リファラ漏れ対策を...
置換画像URLと違い、題名と作者名も表示される。
:Match|
^https?://(?:www\.)?pixiv\.net/member_illust.php\?.*illu...
:Replace|
<iframe src="https://embed.pixiv.net/code.php?id=\1_0" s...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Pornhub (2017/10/30更新) [#a066b531]
:Match|
^https?://(?:\w+\.)?pornhub\.com/(?:embed/|view_video\.p...
:Replace|
$atag<br><iframe src="https://www.pornhub.com/embed/\1" ...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Twitter (2017/10/29更新)[#a74d5be2]
:Match|
^https?://(?:mobile\.)?twitter\.com/(.+?/status/.+)$
:Replace(レスポップアップで副作用あり)|
$atag<br><blockquote class="twitter-tweet" style="width:...
:Replace(サイズ調整されない)|
$atag<br><iframe style="width:500px;max-width:100%;heigh...
:Replace(サイズ調整されない・Twitframe使用・showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Vimeo [#ccf00d51]
:Match|
^https?://vimeo\.com/(\d+)$
:Replace|
$atag<br><iframe style="width:500px;height:281px;max-wi...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***Vine [#mf364ccc]
:Match|
^https?://vine\.co/v/([\w^_]+).*$
:Replace|
$atag<br><iframe src="https://vine.co/v/\1/embed/simple"...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***xHamster (2015/05/01更新) [#d9e25d01]
ウィンドウからはみ出ないように変更。
:Match|
https?://(?:(?:www|jp)\.)?(?:m\.)?xhamster\.com/movies/(...
:Repalce|
$atag<br><iframe style="width:510px;height:400px;max-wid...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***XVIDEOS (2017/10/30更新) [#xc3204ff]
:Match|
^https?://(?:www|jp)\.xvideos\.com/video(\d+)/.*$
:Replace|
$atag<br><iframe src="https://flashservice.xvideos.com/e...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***YouTube (2015/05/08更新) [#p9748ec9]
ウィンドウからはみ出ないように変更。
:Match|
^(?:https?://(?:www\.|m\.|jp\.)?youtube\.(?:com|jp)/(?:w...
:Replace|
$atag<br><iframe style="width:640px;height:360px;max-wid...
:Replace(showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
***食べログ (2017/10/30更新) [#v35d1978]
店名は表示されない。
:Match|
^https?://tabelog\.com/\w+/A\d+/A\d+/(\d+)/?.*$
:Replace|
$atag<br><script src="https://tabelog.com/badge/google_b...
:Replace(非公式・JavaScriptを使わない)|
$atag<br><iframe src="https://tabelog.com/badge/google_b...
:Replace(非公式・JavaScriptを使わない・showボタン)|
$atag<img class="preview-video-switch" src="img/show.png...
ページ名: