⚠️ Development has shifted to the TubeTweaks extension, with more features and better performance. YTShareAntiTrack will only receive updates if something breaks.
YouTube userscript to remove tracking parameters from share URLs
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