Clean Tracking URLs

Clean all tracking URLs, block tracking events on all websites

As of 2023-05-22. See the latest version.

Author
cilxe
Ratings
0 0 0
Version
0.6.2.2
Created
2022-12-20
Updated
2023-05-22
License
MIT
Applies to
All sites

Main Features

  • After the script enabled, it will automatically clean up links and block tracking events by default.

Additional features (Through script menu)

  • Mnually cleaning up links again. (v0.5.2~)
  • Add custom params for current site (host). (v0.6.1~)
  • Remove custom added param for current site (host). (v0.6.2~)

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
    • youku.com
  • Douin/Tiktok.com
  • Amazon

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/")

Chnagelog

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

Contribute on Github

Clean-URLs

License: MIT