<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>パラメータ on qwerty.work</title>
        <link>https://qwerty.work/tags/%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF/</link>
        <description>Recent content in パラメータ on qwerty.work</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>ja-JP</language>
        <lastBuildDate>Wed, 04 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://qwerty.work/tags/%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>【YouTube】再生終了後の関連動画を非表示にしたい</title>
            <link>https://qwerty.work/post/2023/01/you-tube%E5%86%8D%E7%94%9F%E7%B5%82%E4%BA%86%E5%BE%8C%E3%81%AE%E9%96%A2%E9%80%A3%E5%8B%95%E7%94%BB%E3%82%92%E9%9D%9E%E8%A1%A8%E7%A4%BA%E3%81%AB%E3%81%97%E3%81%9F%E3%81%84/</link>
            <pubDate>Wed, 04 Jan 2023 00:00:00 +0000</pubDate>
            <guid>https://qwerty.work/post/2023/01/you-tube%E5%86%8D%E7%94%9F%E7%B5%82%E4%BA%86%E5%BE%8C%E3%81%AE%E9%96%A2%E9%80%A3%E5%8B%95%E7%94%BB%E3%82%92%E9%9D%9E%E8%A1%A8%E7%A4%BA%E3%81%AB%E3%81%97%E3%81%9F%E3%81%84/</guid>
            <description>&lt;h2 id=&#34;再生後の関連動画の表示を止めたい&#34;&gt;再生後の関連動画の表示を止めたい&#xA;&lt;/h2&gt;&lt;p&gt;WEBページに埋め込んだYouTube動画を再生した最後に関連動画が表示されることがあります。特に会社のコーポレートサイトなど、会社紹介用のイメージ動画だった場合、関係の無い動画のサムネイルは表示して欲しくない場合がありますが、これを防ぐ方法はないようです。&lt;/p&gt;&#xA;&lt;p&gt;例えば、なかやまきんに君の以下の動画場合、&lt;/p&gt;&#xA;&lt;iframe title=&#34;YouTube video player&#34; src=&#34;https://www.youtube.com/embed/63gy4XeJYp0&#34; width=&#34;560&#34; height=&#34;315&#34; frameborder=&#34;0&#34; allowfullscreen=&#34;allowfullscreen&#34;&gt;&lt;span data-mce-type=&#34;bookmark&#34; style=&#34;display: inline-block; width: 0px; overflow: hidden; line-height: 0;&#34; class=&#34;mce_SELRES_start&#34;&gt;﻿&lt;/span&gt;&lt;/iframe&gt;&#xA;&lt;p&gt;再生終了後は以下のように、いろいろなチャンネルの関連動画が表示されて停まります。&lt;/p&gt;&#xA;&lt;p&gt;[caption id=&amp;ldquo;attachment_132&amp;rdquo; align=&amp;ldquo;alignnone&amp;rdquo; width=&amp;ldquo;700&amp;rdquo;]&lt;img class=&#34;gallery-image&#34; data-flex-basis=&#34;491px&#34; data-flex-grow=&#34;204&#34; height=&#34;342&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://qwerty.work/post/2023/01/you-tube%E5%86%8D%E7%94%9F%E7%B5%82%E4%BA%86%E5%BE%8C%E3%81%AE%E9%96%A2%E9%80%A3%E5%8B%95%E7%94%BB%E3%82%92%E9%9D%9E%E8%A1%A8%E7%A4%BA%E3%81%AB%E3%81%97%E3%81%9F%E3%81%84/images/Capture-133.jpg&#34; width=&#34;700&#34;&gt; YouTube関連動画（おすすめ動画）の表示例[/caption]&lt;/p&gt;&#xA;&lt;p&gt;しかし、同一チャンネルの関連動画に限定はできるようです。&lt;/p&gt;&#xA;&lt;h3 id=&#34;動画urlの最後にrel0を付ける&#34;&gt;動画URLの最後に?rel=0を付ける&#xA;&lt;/h3&gt;&lt;p&gt;iframe内にある&lt;code&gt;src&lt;/code&gt;の部分にあるYou-Tube動画のURLの後ろに&lt;code&gt;?rel=0&lt;/code&gt;というパラメータを追加することで、関連動画の内容を同一チャンネルに限定することができます。&lt;/p&gt;&#xA;&lt;h4 id=&#34;例&#34;&gt;例&#xA;&lt;/h4&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;src=&amp;#34;https://www.youtube.com/embed/63gy4XeJYp0?rel=0&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;この&lt;code&gt;?rel=0&lt;/code&gt;を追記した再生終了後は、なかやまきんに君の関連動画のみになりました。&lt;/p&gt;&#xA;&lt;p&gt;[caption id=&amp;ldquo;attachment_133&amp;rdquo; align=&amp;ldquo;alignnone&amp;rdquo; width=&amp;ldquo;700&amp;rdquo;]&lt;img class=&#34;gallery-image&#34; data-flex-basis=&#34;523px&#34; data-flex-grow=&#34;218&#34; height=&#34;321&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://qwerty.work/post/2023/01/you-tube%E5%86%8D%E7%94%9F%E7%B5%82%E4%BA%86%E5%BE%8C%E3%81%AE%E9%96%A2%E9%80%A3%E5%8B%95%E7%94%BB%E3%82%92%E9%9D%9E%E8%A1%A8%E7%A4%BA%E3%81%AB%E3%81%97%E3%81%9F%E3%81%84/images/Capture-134.jpg&#34; width=&#34;700&#34;&gt; YouTube関連動画（おすすめ動画）の表示例[/caption]&lt;/p&gt;&#xA;&lt;h3 id=&#34;同一チャンネルに動画が一つしかない場合&#34;&gt;同一チャンネルに動画が一つしかない場合&#xA;&lt;/h3&gt;&lt;p&gt;なかやまきんに君のチャンネルには沢山の動画があるので、おすすめ動画として沢山のサムネイルが表示されますが、企業や会社紹介やお店のＣＭなど、そのチャンネルに動画が一つしかない場合は、関連動画は表示されず、最後のシーンが表示されたままで停まります。&lt;/p&gt;&#xA;&lt;h2 id=&#34;参考ページ&#34;&gt;参考ページ&#xA;&lt;/h2&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;&#xA;&#xA;&lt;div class=&#34;link-card&#34;&gt;&#xA;  &lt;a href=&#34;https://webdesign-trends.net/entry/14279#rel&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-image&#34;&gt;&#xA;      &lt;img src=&#34;https://image.thum.io/get/width/300/crop/200/https://webdesign-trends.net/entry/14279#rel&#34; alt=&#34;https://webdesign-trends.net/entry/14279#rel&#34; loading=&#34;lazy&#34;&gt;&#xA;    &lt;/div&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-body&#34;&gt;&#xA;      &lt;span class=&#34;link-card-title&#34;&gt;https://webdesign-trends.net/entry/14279#rel&lt;/span&gt;&#xA;      &#xA;      &lt;span class=&#34;link-card-url&#34;&gt;https://webdesign-trends.net/entry/14279#rel&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;&#xA;&#xA;&lt;div class=&#34;link-card&#34;&gt;&#xA;  &lt;a href=&#34;https://developers.google.com/youtube/player%5c_parameters?hl=ja#rel&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-image&#34;&gt;&#xA;      &lt;img src=&#34;https://image.thum.io/get/width/300/crop/200/https://developers.google.com/youtube/player%5c_parameters?hl=ja#rel&#34; alt=&#34;https://developers.google.com/youtube/player\_parameters?hl=ja#rel&#34; loading=&#34;lazy&#34;&gt;&#xA;    &lt;/div&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-body&#34;&gt;&#xA;      &lt;span class=&#34;link-card-title&#34;&gt;https://developers.google.com/youtube/player\_parameters?hl=ja#rel&lt;/span&gt;&#xA;      &#xA;      &lt;span class=&#34;link-card-url&#34;&gt;https://developers.google.com/youtube/player\_parameters?hl=ja#rel&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&#xA;</description>
        </item><item>
            <title>AdManagerで設定した広告を試しに確認するときのURLパラメータ</title>
            <link>https://qwerty.work/post/2020/08/admanager-test-url/</link>
            <pubDate>Sun, 23 Aug 2020 10:36:58 +0900</pubDate>
            <guid>https://qwerty.work/post/2020/08/admanager-test-url/</guid>
            <description>&lt;h2 id=&#34;urlの後ろにdfpdebを付ける&#34;&gt;URLの後ろに?dfpdebを付ける&#xA;&lt;/h2&gt;&lt;p&gt;例えばこのページで、&lt;a class=&#34;link&#34; href=&#34;https://admanager.google.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Google AdManager&lt;/a&gt;で設定したサードパーティーの広告がどんな感じで表示されるのか見たい。または正常に表示されるか確認したいときはUELの最後に&lt;code&gt;?dfpdeb&lt;/code&gt;を付けてページを開けば確認できます。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://qwerty.work/blog/2020/08/admanager-test-url.php?dfpdeb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://qwerty.work/blog/2020/08/admanager-test-url.php?dfpdeb&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;同じ類&#34;&gt;同じ類？&#xA;&lt;/h2&gt;&lt;p&gt;これと同じかどうかわかりませんが、&lt;code&gt;?google_preview&lt;/code&gt;というのも見つけました。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://qwerty.work/blog/2020/08/admanager-test-url.php?google_preview&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://qwerty.work/blog/2020/08/admanager-test-url.php?google_preview&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item></channel>
</rss>
