<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hogashi</author_name>
  <author_url>https://blog.hatena.ne.jp/hogashi/</author_url>
  <blog_title>hogashi.*</blog_title>
  <blog_url>https://blog.hog.as/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>落書き</anon>
  </categories>
  <description>素朴に button をつけて pre の innerText を textarea に入れてコピーする感じで書いた。たまに便利。 こういう感じ/* pre に copy ボタンつける */ [...document.querySelectorAll('article.entry pre')] .map(pre =&gt; { const button = document.createElement('button'); pre.parentNode.insertBefore(button, pre); button.textContent = 'copy'; button.classList.a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hog.as%2Fentry%2F2021%2F09%2F24%2F231531&quot; title=&quot;ブログのpreにコピーボタンつける - hogashi.*&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/h/hogashi/20210924/20210924231303.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-24 23:15:31</published>
  <title>ブログのpreにコピーボタンつける</title>
  <type>rich</type>
  <url>https://blog.hog.as/entry/2021/09/24/231531</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
