X.com to XCancel.com Redirector

Replaces xcancel.com links with xcancel.com

Aŭtoro
cucco-io
Ĉiutagaj instaloj
0
Tutaj instaloj
0
Ratings
0 0 0
Versio
0.1
Kreita
2025/04/02
Ĝisdatigita
2025/04/02
Size
2,31 kb
Licenco
MIT
Aplikiĝas al
Ĉiuj retejoj

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).