This script allows you to have a more private Youtube experience. It does two things. 1 replace Youtube embeds with one of Invidious. 2 replace all URLs pointing to a Youtube video to the Invidious counterpart. You can choose your own Invidious instance!
It is different from simple redirect scripts in that this script prevents making connections to youtube.com or any other google server. This way there will be no exchange of cookies and the video is completely proxied through Invidious' servers.
Supports all browsers.
It is recommended to block all Youtube domains while using this script (e.g with uBlock Origin or uMatrix).