X.com to XCancel.com Redirector

Replaces xcancel.com links with xcancel.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
cucco-io
今日安裝
0
安裝總數
29
評價
0 0 1
版本
0.1
建立日期
2025-04-02
更新日期
2025-04-02
尺寸
2.3 KB
授權條款
MIT
腳本執行於
所有網站

X.com to XCancel.com Redirector

Script Description

Title: X.com to XCancel.com Redirector

Description:
This userscript automatically replaces all occurrences of xcancel.com URLs with xcancel.com on any webpage you visit. It modifies both clickable links (<a> tags) and visible text content containing xcancel.com. Additionally, it intercepts network requests (e.g., fetch and XMLHttpRequest) to ensure that any requests to xcancel.com are redirected to xcancel.com. This script is useful for users who want to avoid visiting xcancel.com and instead redirect to xcancel.com.

Features:

  • Replaces all xcancel.com links in anchor tags (<a> elements) with xcancel.com.
  • Updates visible text content containing xcancel.com to xcancel.com.
  • Intercepts and modifies network requests to redirect xcancel.com to xcancel.com.
  • Works on all websites (@match *://*/*).
  • Runs automatically when the page loads and periodically checks for dynamically added content.

How It Works:

  1. The script scans the webpage for any links or text containing xcancel.com and replaces them with xcancel.com.
  2. It intercepts network requests (e.g., AJAX or fetch) to ensure that any requests to xcancel.com are redirected to xcancel.com.
  3. The script runs periodically to handle dynamically loaded content (e.g., content added via JavaScript).