Use my own instances

This commit is contained in:
Hydroxycarbamide 2022-09-24 23:08:28 +02:00
parent 8189d3775a
commit 96d4a39d8a

View file

@ -2,15 +2,15 @@
// @name Privacy Redirector
// @name:tr Gizlilik Yönlendiricisi
// @name:de Datenschutz Umleiter
// @namespace https://github.com/dybdeskarphet/privacy-redirector
// @namespace https://git.siklos-chaneru.duckdns.org/Siklos/privacy-redirector
// @license GPLv3
// @version 1.3.0
// @version 1.4.0
// @description Redirect social media platforms to their privacy respecting frontends
// @description:tr Sosyal medya platformlarını, gizliliğe saygı duyan önyüzlerine yönlendirir
// @description:de Leitet von Social-Media-Plattformen auf deren jeweilige datenschutzfreundlicheren Frontends
// @updateURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js
// @downloadURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js
// @supportURL https://github.com/dybdeskarphet/privacy-redirector
// @downloadURL https://git.siklos-chaneru.duckdns.org/Siklos/privacy-redirector/raw/branch/main/privacy-redirector.js
// @supportURL https://git.siklos-chaneru.duckdns.org/Siklos/privacy-redirector
// @run-at document-start
// @match *://*.imdb.com/*
// @match *://*.imgur.com/*
@ -60,6 +60,7 @@ var redirect_youtube = true;
// // // // // // // // // // // // //
var farsideInstance = "farside.link";
var siklosChaneruInstance = "siklos-chaneru.duckdns.org";
var debug_mode = false;
if (debug_mode == true) {
@ -143,7 +144,7 @@ function redirectTwitter() {
window.stop();
let newURL = window.location.protocol +
"//" + farsideInstance + "/nitter" +
"//" + "nitter." + siklosChaneruInstance +
window.location.pathname +
window.location.search +
window.location.hash;
@ -158,7 +159,7 @@ function redirectReddit() {
window.stop();
let farsideLibreddit = farsideInstance + "/libreddit";
let farsideLibreddit = "libreddit." + siklosChaneruInstance;
let farsideTeddit = farsideInstance + "/teddit";
if (window.location.hostname == "old.reddit.com") {
@ -375,7 +376,7 @@ function redirectWikipedia() {
if (langCodeIndex != -1) {
let newURL = window.location.protocol +
"//" + farsideInstance + "/wikiless" +
"//" + "wikiless." + siklosChaneruInstance +
window.location.pathname +
"?lang=" +
window.location.hostname[langCodeIndex] + window.location.hostname[langCodeIndex + 1] +
@ -383,7 +384,7 @@ function redirectWikipedia() {
window.location.replace(newURL);
} else {
let newURL = window.location.protocol +
"//" + farsideInstance + "/wikiless" +
"//" + "wikiless." + siklosChaneruInstance +
window.location.pathname +"?lang=en" +
window.location.hash;
window.location.replace(newURL);