Change Invidious instance

This commit is contained in:
Ahmet Arda Kavakcı 2021-12-02 11:26:26 +03:00
parent 46947b8a7a
commit 2dc3bd7b7e
No known key found for this signature in database
GPG key ID: 9EC8FA1B94CE0F55

View file

@ -4,7 +4,7 @@
// @downloadURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js
// @updateURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js
// @license AGPLv3
// @version 1.0.6
// @version 1.0.7
// @description Redirect social media platforms to their privacy respecting frontends
// @description:tr Sosyal medya platformlarını, gizliliğe saygı duyan önyüzlerine yönlendirir
// @run-at document-start
@ -46,11 +46,11 @@ function redirectReddit() {
function redirectYoutube() {
if (window.location.pathname.indexOf("results?search_query") == 1) {
window.stop();
location.hostname = "yewtu.be";
location.hostname = "invidious.snopyta.org";
window.location.replace("results?search_query", "search?q");
} else {
window.stop();
location.hostname = "yewtu.be";
location.hostname = "invidious.snopyta.org";
}
}