Clean Tracking URLs

Clean all tracking URLs, block tracking events on all websites

As of 2023-04-28. See the latest version.

Author
cilxe
Ratings
0 0 0
Version
0.5.6
Created
2022-12-20
Updated
2023-04-28
License
MIT
Applies to
All sites

Clean Tracking URLs & Block Tracking Events


Features

  • After the script enabled, it will automatically clean up links and block tracking events by default.
  • Since version 0.5.2, a script submenu has been added under the Tampermonkey menu, which provides the function of manually cleaning up links again.

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

  • All websites on the internet.

Websites that support specified 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

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

  • Before:https://example.com/v/vide_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/")

License: MIT