<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lifewindmill</author_name>
  <author_url>https://blog.hatena.ne.jp/lifewindmill/</author_url>
  <blog_title>lifewindmillの日記</blog_title>
  <blog_url>https://lifewindmill.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>掲示板とかでこんな感じに貼られているURLを こうするスクリプト ソースはこんな感じ。 IEだと長いスキームはエラーになるので出来るだけ文字数を節約しようとするため見にくくなりがち。(function () { //画像のサイズを整える function ig(e, x) { //画像オブジェクト作成 (g = new Image()).src = e.src; if (!g.width) { //404などで正しくないイメージの場合はノードを非表示 e.parentNode.style.display = &quot;none&quot;; } else if (g.width &gt; g.height) { //…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flifewindmill.hatenadiary.org%2Fentry%2F20090812%2F1250104787&quot; title=&quot;リンク先の画像をページに埋め込むブックマークレット - lifewindmillの日記&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/l/lifewindmill/20090813/20090813042037.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-08-12 04:19:47</published>
  <title>リンク先の画像をページに埋め込むブックマークレット</title>
  <type>rich</type>
  <url>https://lifewindmill.hatenadiary.org/entry/20090812/1250104787</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
