Fix Lingva

This commit is contained in:
Ahmet Arda Kavakci 2022-06-07 17:24:43 +03:00
parent 4eba9a68e1
commit 7ea9fdfea0
No known key found for this signature in database
GPG key ID: 80860C9FC6584220

View file

@ -3,7 +3,7 @@
// @name:tr Gizlilik Yönlendiricisi
// @namespace https://github.com/dybdeskarphet/privacy-redirector
// @license GPLv3
// @version 1.2.3
// @version 1.2.4
// @description Redirect social media platforms to their privacy respecting frontends
// @description:tr Sosyal medya platformlarını, gizliliğe saygı duyan önyüzlerine yönlendirir
// @updateURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js
@ -225,10 +225,10 @@ function redirectGTranslate() {
if (window.location.search != "") {
let newURL = window.location.protocol + "//" + farsideLingva + window.location.pathname + window.location.search.replace(/\?hl=tr/, "").replace(/.sl=/, "").replace("&tl=", "/").replace("&text=", "/").replace("&op=translate", "") + window.location.hash;
let newURL = window.location.protocol + "//" + farsideInstance + "/lingva" + window.location.pathname + window.location.search.replace(/\?hl=tr/, "").replace(/.sl=/, "").replace("&tl=", "/").replace("&text=", "/").replace("&op=translate", "") + window.location.hash;
window.location.replace(newURL);
} else {
let newURL = window.location.protocol + "//" + farsideLingva;
let newURL = window.location.protocol + "//" + farsideInstance + "/lingva";
window.location.replace(newURL);
}
}