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;