This repository is a fork of the GitHub - Xenorio/YTShareAntiTrack: YouTube userscript to remove tracking parameters from share URLs. The original project is designed to remove tracking parameters from YouTube share URLs. This fork includes additional changes, which are detailed below.
- Replace share url hostname from "youtu.be" to "www.youtube.com" for easier resolving.
- Increased check interval from 50 miliseconds to 1 second.
Example log output:
[YTShareAntiTrack] Changing share url from https://youtu.be/abcde?si=12345 to https://www.youtube.com/watch?v=abcde
Recently, YouTube started adding a tracking parameter to their share URLs, when using the "share" button on a video. With this, they can track who is sharing videos with who, and under some circumstances even how they are shared.
This userscript removes any tracking parameters from this box, allowing you to safely copy the link without needing to manually modify it.
First, you need a userscript manager. This script should work with any manager, but is only being tested on Violentmonkey.
Once you have a manager, install YTShareAntiTrack by clicking here.
This script only prevents you from accidentally sharing trackable links. It does not (and cannot) prevent you from loading trackable links which have been shared with you.
However, you can prevent this via a custom rule in uBlock: ||youtube.com^$removeparam=si