<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ponsea</author_name>
  <author_url>https://blog.hatena.ne.jp/ponsea/</author_url>
  <blog_title>Web開発のしおりRepository</blog_title>
  <blog_url>https://ponsea.hatenablog.com/</blog_url>
  <categories>
    <anon>Web開発</anon>
    <anon>JavaScript</anon>
    <anon>UX</anon>
  </categories>
  <description>したいこと ブログなどのWebサイトでリンクをクリックした時、特にそのリンクが外部のWebサイトのものだと新規タブで開いた方が見る側として楽だと思います(たぶん)。 また、コンテンツ提供者側としても、自分のサイトに長く滞在してくれることになり嬉しいです。とは言ったものの1つ1つの&lt;a&gt;タグにtarget=&quot;_blank&quot;と書くのは面倒なので、共通のスクリプト書きました。jQueryなど無しのプレーンJavaScriptです(ECMA 2015 (ES6) を前提としていますが。) スクリプト &lt;script&gt; window.addEventListener(&quot;DOMContentLoaded&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fponsea.hatenablog.com%2Fentry%2F2020%2F05%2F01%2F130142&quot; title=&quot;外部リンクを新規タブで開くようにするだけ (プレーンなJavaScript) - Web開発のしおりRepository&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/p/ponsea/20200501/20200501124858.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-01 13:01:42</published>
  <title>外部リンクを新規タブで開くようにするだけ (プレーンなJavaScript)</title>
  <type>rich</type>
  <url>https://ponsea.hatenablog.com/entry/2020/05/01/130142</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
