Clean URL Improved

Remove tracking parameters and redirect to original URL. This Userscript uses the URL Interface instread of RegEx.

目前為 2023-05-10 提交的版本,檢視 最新版本

作者
Schimon
評價
0 0 0
版本
23.05.10
建立日期
2023-05-10
更新日期
2023-05-10
尺寸
13.0 KB
授權條款
MIT
腳本執行於
所有網站

🔗️ URL Control

Original URL Redirector and Fixer.

Remove needless parameters from a given URL and correct it to a cleaner one.

Legend

🔴 Original URL Complete URL (useful in rare cases)

🟡 Purged URL URL cleaned by blacklist

🟢 URL with whitelisted parameters URL cleaned by whitelist

⚪ URL with no parameters URL with mere pathname

🔗 Discovered URL URL found within a parameter


About

This script is started as a proof of concept of utilizing the URL API instead of RegEx.

To add a new hash or parameter, simply add it to the respective array.

Enjoy graceful sharing!


Test hyperlinks with parameters:

Link #1 (orderBy, orderDir, ref) // Tooltip
Link #2 (orderBy, orderDir, v) // No tooltip (yet)
Link #3 (orderBy, orderDir, v, ref) // Tooltip
Link #4 (orderBy, orderDir, v, url) // FIXME no tooltip (event listener) no href-data attribute
Link #5 (orderBy, orderDir, v) // No tooltip (yet)

Test (plain) links with parameters:

https://gf.qytechs.cn/en/discussions?orderBy=updated&orderDir=desc&ref=sjehuda // Tooltip
https://openuserjs.org/?orderBy=updated&orderDir=desc&v=sjehuda // No tooltip (yet)
https://gf.qytechs.cn/en/discussions?orderBy=updated&orderDir=desc&v=sjehuda&ref=sjehuda // Tooltip
https://gf.qytechs.cn/en/discussions?orderBy=updated&orderDir=desc&v=sjehuda&ref=sjehuda&url=https://blacklistednews.com // Tooltip
https://gf.qytechs.cn/en/discussions?orderBy=updated&orderDir=desc&sjehuda=sjehuda // No tooltip (yet)

Recommended Userscripts

🤫 No Referrer

Prevent sending HTTP "referer" requests to destination website.


Please visit our counterparts

Web Extension

ClearURLs

Removes tracking elements from URLs.

FastForward

Don't waste time with compliance.

Mobile App

Léon – The URL Cleaner

Removes tracking & other redundant parameters from web links for sharing.

URLCheck

Allows you to analyze (or share) urls before opening them.


Upcoming changes:

  • Support dynamic pages. (using mutation observer or set interval);
  • All URLs with hash and parameters are subjects (not only by blacklist);
  • Modify URLs by whitelist (not only by blacklist). See Link #2;
  • Improve Event Listener Delegator;
  • Improve URL extraction by validating its structure;
  • Reduce amount of links when there are two identical links;

  • Select graphics:

    💡😃😀🙂💀 💡😊🙂😐🤔 💡👍✋👎🛑


🦅 Designed for Falkon web browser

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址