From cdceafb4eefb721d2410b97b058d2e9fba0e1c09 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 27 Mar 2024 13:35:36 +0000 Subject: [PATCH] Add Invidious Redirector script --- indivious_redirector.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 indivious_redirector.js diff --git a/indivious_redirector.js b/indivious_redirector.js new file mode 100644 index 0000000..b5c0824 --- /dev/null +++ b/indivious_redirector.js @@ -0,0 +1,13 @@ +// ==UserScript== +// @name Invidious Redirector +// @description Automatically redirects to an Invidious instance when loading a Youtube page. +// @version 1 +// @grant none +// @include https://www.youtube.com/* +// ==/UserScript== + +const INVIDIOUS_INSTANCE = "yewtu.be" + +let youtubeUrl = window.location.href; +let invidiousUrl = youtubeUrl.replace("www.youtube.com", INVIDIOUS_INSTANCE); +window.location.href = invidiousUrl;