X/Twitter t.co Stripper

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Spinfal
今日安裝
1
安裝總數
7
評價
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/