~cyborg/userscripts

f331ee284884bf58063aeb457e8589048d5a01ff — Christian Cleberg 10 months ago 613797f
add AnonymousOverflow
1 files changed, 24 insertions(+), 16 deletions(-)

M redirector.js
M redirector.js => redirector.js +24 -16
@@ 23,7 23,7 @@
// @name:zh-CN 开源替代重定向器
// @name:zh-TW 開源替代重定向器
// @namespace -
// @version 10.0.1
// @version 10.0.2
// @description Redirects you from proprietary web-services to ethical alternatives(front-end).
// @description:ar يعيد توجيهك من خدمات الويب المسجلة الملكية إلى البدائل الأخلاقية (الواجهة الأمامية).
// @description:bg Пренасочва ви от собствени уеб-услуги към етични алтернативи (front-end).


@@ 61,19 61,21 @@
// @include *odysee.com/*
// @include *tiktok.com/*
// @include *quora.com/*
// @include *stackoverflow.com/*
// @run-at document-start
// @license GPL-3.0-or-later
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAHkklEQVRYw8WXW2xUxxnHf3Nuu2e9CxhjsGPHmARzMddwSUmghBKSpkpJSpU0rdrmoVVbuVIESl4iRaJNpKh9IUpfitoHXhKJKqhBSkVFgDYkiLpJKJcaMMTY2MaXZe31ei/e3XOb6YOXxSwmgvQh83IumnPmN//v+2b+I5RSfJ3N4GtuBsCWH/3qbvs/AjwDrADqABsoAHGgA/gAaL+bHx3f/6e7VsACXgXaFs5vrFve0kzt7Goidhhd0/F8n4lCgZFk6ukLV3pf7bk2FAf2Ar8H3P83BC8bur5n05oVPLpuJXYohFIKpUChSveKWTOiNMydw6olLeSLxbr2M+df/7yj83U/kK8Ab31VgLcfbGrYueOJzcSqqlBKkclNkMlkKTgOnufh+wEAuqETMi1mxKqwbZtN61axcslCPvzk0z29Q/EmYNe9Avxxw+plbU9sXA8KEqNJ4iOjeJ6HlBKpFFIqlJKlq0IqiRxU6JpO/bw51FTPYvvjG/nk83M7z126YgG/vluAt7+xsrVt26PryU7k6R8Youi4SCVRUpUGl5ODlq5B+Vm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BCCXHqc9n8exjBMaubVY5gWz7zYxtj1IXzfBxQzqmuIRGcwloiTSMRLszcxrBDSdwHOVgIc9Vxnpx2JwqQGzG9pvS0MuUyaz04cw3UdXNfh38ePsG7TVsJ2hDn1jbf1X7N5G0cO7kfTdQzLwjBNCvkswNFKgMMT2SzR2fPQQhooyKZT3MhF33MZiQ/R330Z13HKyZUeS3Ly2CEamx+kumZueSGKRGPYVVE6z55C101008QK2QihMZHNAhyuBAiUUm/k0mO7Z9XWgRC0Hz9K4Hu3JaTQtFuenWKR7ksXgAvld62r1yE0naGBPnTLwgrbmFaI9Mh1pi7DlZvRmxPjY7tnza0nZEcQQuAVC5MQ92jdE8MDZFIpTNPCDNtYYRspJbnxJMCbd/IDrlLqldHBvj0NLa1ouoGmabhOcVolvqyNp8bQDRMrFMayq9BNk8GuiyilXqk0qpWG5K1iLts0eq13Z92CReiGgW6YuMUCgechZfClaggh0DR9MuZhG8uOYJgh4le/oJjL/mE6gzqdJduVHr1uCU201S9cghEKYRZtXKdA4LoEvo9S8hZFhKYhxORCo1sWVsjGDIfRdJ3hK5dIj17feydjOq0p/fgvf37pm8//DLdQaGtc3EokFiMUieC7Dr7nIQMfVTImk4uMhqYbGOZkreu6jlss0NfZQS41uvfEgX0vPfbDX96TK9ZOHNj32zVP7nAKueyu2fUNzJ2/gHBV9ObqWAEw1TsM93QxNjxIJnn97dNHDv4O0KZm/l0fTE4fObjfsELtrY8+/pORa1e/Faupjcaq5xCJxdANE6HrqCAg8D3y2SzZ1CjZ5EguPRL/6OK//vGu7zq9X/VkJAEHGPddJ/Hf439/B/igYdHyFbPrGlfYsZmNmmFENKGZUklP+n6+kE0PjMUHOga/ON8BpIERYLz0nzuWkPi6j+f/AyQVGowU1BFkAAAAAElFTkSuQmCC
// @grant none
// ==/UserScript==
 

var url = new URL(location.href),
 

// INSTANCES //
invidious = 'invidious.cleberg.net',
libreddit = 'libreddit.cleberg.net',
nitter = 'nitter.cleberg.net',
searx = 'search.cleberg.net',
anonymousoverflow = 'ao.cleberg.net',
bibliogram = 'bibliogram.pussthecat.org',
wikiless = 'wikiless.org',
lingva = 'lingva.ml',


@@ 82,12 84,12 @@ rimgo = 'rimgo.pussthecat.org',
librarian = 'librarian.pussthecat.org',
proxitok = 'proxitok.pussthecat.org',
quetre = 'qr.vern.cc'
 

// YouTube | Invidious //
if(hostHas('youtube.com')) {
    location.replace('https://' + invidious + location.pathname + location.search)
}
 

if(hostHas('google.')) {
    // Google Translate | Lingva Translate //
    if(location.hostname.match(/translate.google.+/)){


@@ 107,28 109,28 @@ if(hostHas('google.')) {
        location.replace('https://' + searx + location.pathname + location.search)
    }
}
 

// Yahoo | SearX //
if(hostHas('yahoo.com')) {
    var search = location.search.replace('?p', '?q')
    location.replace('https://' + searx + location.pathname + search)
}
 

// Bing | SearX //
if(hostHas('bing.com')) {
    location.replace('https://' + searx + location.pathname + location.search)
}
 

// Reddit | Libreddit //
if(hostHas('reddit.com')) {
    location.replace('https://' + libreddit + location.pathname + location.search)
}
 

// Twitter | Nitter //
if(hostHas('twitter.com')) {
    location.replace('https://' + nitter + location.pathname + location.search)
}
 

// Wikipedia | Wikiless //
/*
if(hostHas('wikipedia.org')) {


@@ 140,27 142,33 @@ if(hostHas('wikipedia.org')) {
if(hostHas('medium.com') || hostHas('towardsdatascience.com')) {
    location.replace('https://' + scribe + location.pathname + location.search)
}
 

// i.Imgur | Rimgo //
if(hostHas('i.imgur.com')) {
    location.replace('https://' + rimgo + location.pathname + location.search)
}
 

// Odysee | Librarinan //
if(hostHas('odysee.com')) {
    location.replace('https://' + librarian + location.pathname + location.search)
}
 

// TikTok | ProxiTok //
if(hostHas('tiktok.com')) {
    location.replace('https://' + proxitok + location.pathname + location.search)
}
 

// Quora | Quetre //
if(hostHas('quora.com')) {
    location.replace('https://' + quetre + location.pathname + location.search)
}
 

// StackOverflow | AnonymousOverflow //
if(hostHas('stackoverflow.com')) {
    location.replace('https://' + anonymousoverflow + location.pathname + location.search)
}


function hostHas(str) {
    return location.host.indexOf(str) != -1
}
\ No newline at end of file
}