<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuhelohelo</author_name>
  <author_url>https://blog.hatena.ne.jp/shuhelohelo/</author_url>
  <blog_title>shuhelohelo’s blog</blog_title>
  <blog_url>https://shuhelohelo.hatenablog.com/</blog_url>
  <categories>
    <anon>SignalR</anon>
    <anon>WebExtension</anon>
  </categories>
  <description>以前に記事を書いたリアルタイムチャットアプリ shuhelohelo.hatenablog.com と, Chrome拡張機能とサーバーをSignalRを使って接続する, shuhelohelo.hatenablog.com の2つを使って,チャットアプリから送ったメッセージを拡張機能で受け取って,ウェブページのDOMを操作する. サーバー側はメッセージを中継するだけなので特に変更はない. 拡張機能側もメッセージ受信時のイベントハンドラにDOMを操作する処理を追加するだけ. 以下のようにbody要素の背景色をチャットメッセージに入力した色に変更するようにする. //サーバーからのメッセージ受信…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuhelohelo.hatenablog.com%2Fentry%2F2019%2F11%2F23%2F111905&quot; title=&quot;SignalRを使って拡張機能経由でWebページを操作する - shuhelohelo’s blog&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/s/shuhelohelo/20191123/20191123111717.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-23 11:19:05</published>
  <title>SignalRを使って拡張機能経由でWebページを操作する</title>
  <type>rich</type>
  <url>https://shuhelohelo.hatenablog.com/entry/2019/11/23/111905</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
