Clean Tracking URLs

Clean all tracking URLs, block tracking events on all websites

Author
cilxe
Daily installs
9
Total installs
12,451
Ratings
22 7 1
Version
0.7.8
Created
2022-12-20
Updated
2024-09-29
License
MIT
Applies to
All sites

Main Features

  • Auto clean up all URLs and block tracking events by default.
  • Manually clean all links with keyboard shortcuts (Shift + Alt + X). (v0.6.3~)

Additional features (via the script menu)

  • Manually clean up the links again. (v0.5.2~)
  • Add specific tracking params for the current site (host). (v0.6.1~)
  • Remove custom added params for the current site (host). (v0.6.2~)
  • Get all custom added params for the current site (host). (v0.7.8~)

Websites that support common cleaning (Google Analytics, Steam, Embedded videos...)

  • All websites on the internet.

Websites that support additional cleaning

  • Bilibili
  • Baidu (Unencrypted) URLs
  • CSDN
  • Alibaba sites
    • alibaba.com/aliyun.com/alibabagroup.com/alimama.com
    • taobao.com/tmall.com/tmall.hk/1688.com/aliexpress.com/trendyol/lazada
    • youku.com
  • Douyin/Tiktok.com
  • Amazon
  • Youtube

Demo (Address bar URL and the links on the page)

  • Before:https://example.com/v/video_A?spm=34&spm_id_from=123&utm_content=ASDF&utm_term=3423
  • After:https://example.com/v/video_A

Tips

  1. This script sets a delay to ensure its proper operation, you can modify DELAY_TIME (milliseconds) by yourself if needed.

  2. Recommanded to use ad-blocking extensions (AdBlock, uBlock...) for more convenient and fast blocking of ads with random attributes.

  • Two options to block the ads that its target url contains "cm.bilibili.com" using uBlock and achieve the same result:
    • CSS Selector:
      bilibili.com##[href*="cm.bilibili.com"]

    • Procedural filter [matches-attr(arg)] with Regular expression:
      (Use procedural filters when CSS selector won't work, like random attribute-name)
      bilibili.com##a:matches-attr(href="/cm.bilibili.com/")

FAQs

Q: What is URL parameter?

  • A. Usually start with question mark (?), it contains key and value, like the blue area in this image: this URL common format (image from developer.mozilla.org)

Chnagelog

https://greasyfork.org/en/scripts/456881/versions?locale_override=1

Contribute on Github

Clean-URLs

License: MIT