Tracking Redirect Nuker

Decode encoded URLs in links and replace them with the decoded URL

作者
Luca LeBlanc
日安装量
0
总安装量
32
评分
0 0 0
版本
0.2.2
创建于
2024-06-11
更新于
2024-06-20
许可证
GNU GPLv3
适用于
所有网站

Decode and Replace Links Userscript

Warning! This very well may break some legitimate sites, be prepared to have to toggle it off. I will add @excludes as I find sites, feel free to comment any.

Description

This userscript automatically decodes encoded URLs found within links on web pages and replaces them with the decoded URL. It scans all links on the page, identifies if a link contains an encoded URL, decodes that URL, and replaces the original link with the decoded section.

Use Cases

  • Privacy Concerns: Some URLs may contain encoded tracking parameters or redirects, which can compromise user privacy. By decoding these URLs, users can see the actual destination and avoid potential tracking.
  • Improved Readability: Encoded URLs can be difficult to read and understand. This script helps in improving the readability of links by displaying the decoded URLs.
  • Preventing Redirection Chains: Some links may go through multiple redirections before reaching the final destination. By decoding the URLs, users can directly access the intended destination without going through unnecessary redirects.

How It Works

  1. Scanning Links: The script scans all links on the page using JavaScript.
  2. Identifying Encoded URLs: It checks if a link contains an encoded URL by searching for the presence of "https%3A%2F%2F" or "http%3A%2F%2F" (the URL encoding for "https://" and "http://").
  3. Decoding URLs: If an encoded URL is found, the script extracts the encoded part of the URL and decodes it using decodeURIComponent().
  4. Replacing Links: The original link is replaced with the decoded section, effectively displaying the decoded URL to the user.

Compatibility

This userscript is compatible with most modern web browsers that support userscript managers such as Chrome and Firefox.