qutebrowser/invidious: Also redirect youtube-nocookie.com

This commit is contained in:
Simon Bruder 2021-12-05 19:22:00 +01:00
parent 88ba5dd485
commit 349b72c1d7
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -2,8 +2,9 @@
// @name Invidious Redirect
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
// @include https://www.youtube-nocookie.com/*
// @run-at document-start
// ==/UserScript==
document.close();
window.location.replace(window.location.href.replace(/www\.youtube\.com/, "iv.sbruder.xyz").replace("/shorts/", "/watch?v="))
window.location.replace(window.location.href.replace(/www\.youtube(-nocookie)?\.com/, "iv.sbruder.xyz").replace("/shorts/", "/watch?v="))