# 无法阻止 x.com 的 onebox（而且它们坏了）

**URL:** https://meta.discourse.org/t/impossible-to-prevent-x-com-oneboxes-and-theyre-broken/397516
**Category:** Bug
**Tags:** onebox
**Created:** [2026年三月3日 08:51 UTC](https://meta.discourse.org/t/impossible-to-prevent-x-com-oneboxes-and-theyre-broken/397516 "2026-03-03T08:51:27Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年三月3日 08:51 UTC](https://meta.discourse.org/t/impossible-to-prevent-x-com-oneboxes-and-theyre-broken/397516/1 "2026-03-03T08:51:27Z")

</div>

- 将 `x.com` 和 `twitter.com` 添加到 `blocked_onebox_domains` 站点设置中
- 创建一个新帖子
- 在新的一行输入一个 [x.com](http://x.com) 的链接
- 查看是否会得到一个（损坏的）onebox

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/4/5/545602397d6247f02125a83073241d3f450311fb.png)

onebox 是否损坏与 `blocked_onebox_domains` 站点设置的值无关。它们总是损坏的。  
生成的 HTML，看看基本上所有内容都是空的。

```plaintext
<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>

```

---

_[View the full topic](https://meta.discourse.org/t/impossible-to-prevent-x-com-oneboxes-and-theyre-broken/397516)._
