Greasy Fork

Greasy Fork is available in English.

X.com to XCancel.com Redirector

Replaces xcancel.com links with xcancel.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
cucco-io
日安装量
0
总安装量
27
评分
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).