Skip to content

YouTube userscript to remove tracking parameters from share URLs

License

Notifications You must be signed in to change notification settings

wickes1/YTShareAntiTrack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked YTShareAntiTrack

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.

Changes

  • 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

Explanation

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.

Example

This userscript removes any tracking parameters from this box, allowing you to safely copy the link without needing to manually modify it.

Example

Installation

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.

Additional Measures

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

About

YouTube userscript to remove tracking parameters from share URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%