x.comのワンボックスを防ぐのは不可能(しかも壊れている)

  • サイト設定の blocked_onebox_domainsx.comtwitter.com を追加する
  • 新しい投稿を作成する
  • その行に x.com へのリンクを入力する
  • (壊れた) onebox が表示されることを確認する

生成された HTML。基本的にすべてが空であることを確認してください。

<aside class="onebox twitterstatus" data-onebox-src="https://x.com/The_Kremlinn/status/2028700091154940405">
  <header class="source"><svg class="fa d-icon d-icon-fab-twitter svg-icon fa-width-auto svg-string" width="1em" height="1em" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><use href="#fab-twitter"></use></svg>

      <a href="https://x.com/The_Kremlinn/status/2028700091154940405" target="_blank" rel="noopener">x.com</a>
  </header>

  <article class="onebox-body">
    
<h4><a href="https://x.com/The_Kremlinn/status/2028700091154940405" target="_blank" rel="noopener"></a></h4>
<div class="twitter-screen-name"><a href="https://x.com/The_Kremlinn/status/2028700091154940405" target="_blank" rel="noopener">@</a></div>

<div class="tweet">
  <span class="tweet-description"></span>
</div>

<div class="date">
  <a href="https://x.com/The_Kremlinn/status/2028700091154940405" class="timestamp" target="_blank" rel="noopener"></a>


</div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
「いいね!」 4