Add Invidious Redirector script
This commit is contained in:
parent
3db0a533ae
commit
cdceafb4ee
|
@ -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;
|
Loading…
Reference in New Issue