X/Twitter t.co Stripper

replace t.co links with direct destinations and outline cards on X/Twitter

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Spinfal
日安装量
1
总安装量
3
评分
0 0 0
版本
1.1
创建于
2025-11-23
更新于
2025-11-23
大小
3.2 KB
许可证
GPL-3.0-or-later
适用于

x/twitter t.co stripper

this userscript removes twitter’s tracking redirects by replacing every t.co link with its real destination. it pulls from multiple attributes like data-expanded-url, aria-label, and even visible text to recover the actual url. once replaced, links are turned green so you know they’ve been cleaned.

the script also highlights twitter “card” preview elements by outlining every [data-testid="card.wrapper"] node. this makes it easy to spot t.co embedded link cards and preview blocks that cannot be cleaned.

features

  • strips t.co tracking links and replaces them with the true destination
  • supports expanded urls, aria labels, and fallback text parsing
  • colors cleaned links for visual feedback
  • highlights impossible-to-clean link cards with a red border
  • extremely fast thanks to a mutation observer (no timers, no polling)
  • avoids reprocessing nodes using tiny data flags for performance

performance

the script never scans the whole page on an interval. instead, it listens for dom changes and only processes newly added nodes, making it lightweight even on twitter’s chaotic infinite-scroll feed.

safety

this script performs zero external requests and only modifies link href and element styles locally in your browser.

author

made by spinfal
https://spin.rip/