Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

От 19.12.2021. Виж последната версия.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

// ==UserScript==
// @name              Open-Source Alternative Redirector
// @namespace    -
// @version           0.1
// @description    Redirects you from proprietary web-services to ethical alternatives.
// @author             NotYou
// @match             *youtube.com/*
// @match             *google.com/*
// @match             *reddit.com/*
// @match             *twitter.com/*
// @match             *instagram.com/*
// @match             *facebook.com/*
// @match             *wikipedia.com/*
// @match             *pastebin.com/*
// @match             *mediafire.com/*
// @match             *speedtest.net/*
// @match             *mega.nz/*
// @match             *play.google.com/*
// @match             *zoom.us/*
// @match             *microsoft.com/*
// @run-at              document-start
// @license           GPLv3
// @license-link    https://www.gnu.org/licenses/gpl-3.0.txt
// @grant               none
// ==/UserScript==

const invidious = "https://yewtu.be"
const searx = "https://searx.org"
const libreddit = "https://reddit.invak.id"
const nitter = "https://nitter.snopyta.org"
const bibliogram = "https://bibliogram.art"
const mastodon = "https://hostux.social"
const wikiless = "https://wikiless.org"
const privatebin = "https://privatebin.info"
const lingvatrns = "https://lingva.ml"
const libretrns = "https://libretranslate.de"
const filebin = "https://filebin.net"
const librepseed = "https://librespeed.org"
const crypt = "https://crypt.ee"
const fdroid = "https://f-droid.org"
const jisti = "https://meet.jit.si/"
const fsf = "https://fsf.org"

// YouTube | Invidious
if(window.location.host.indexOf("youtube.com") != -1){
    window.location.replace(invidious + window.location.pathname + window.location.search)
}

// Google | Searx
if(window.location.host.indexOf("google.com") != -1){
    window.location.replace(searx + window.location.pathname + window.location.search)
}

// Reddit | Libreddit
if(window.location.host.indexOf("reddit.com") != -1){
    window.location.replace(libreddit + window.location.pathname + window.location.search)
}

// Twitter | Nitter
if(window.location.host.indexOf("twitter.com") != -1){
    window.location.replace(nitter + window.location.pathname + window.location.search)
}

// Instagram | Bibliogram
if(window.location.host.indexOf("instagram.com") != -1){
    window.location.replace(bibliogram + window.location.pathname + window.location.search)
}

// Facebook | Mastodon
if(window.location.host.indexOf("facebook.com") != 1){
    window.location.replace(mastodon)
}

// Wikipedia | Wikiless
if(window.location.host.indexOf("wikipedia.org") != -1){
    window.location.replace(wikiless + window.location.pathname + window.location.search)
}

// PasteBin | PrivateBin
if(window.location.host.indexOf("pastebin.com") != 1){
    window.location.replace(privatebin)
}

// MediaFire | FileBin
if(window.location.host.indexOf("mediafire.com") != 1){
    window.location.replace(filebin)
}

// Google Translate | Lingva Translate
if(window.location.host.indexOf("translate.google.com") != 1){
    window.location.replace(lingvatrns)
}

// DeepL Translate | Libre Translate
if(window.location.host.indexOf("www.deepl.com") != 1){
    window.location.replace(libretrns)
}

// SpeedTest | LibreSpeed
if(window.location.host.indexOf("www.speedtest.net") != 1){
    window.location.replace(librepseed)
}

// Mega | Crypt
if(window.location.host.indexOf("mega.nz") != 1){
    window.location.replace(crypt)
}

// Play Market | F-Droid
if(window.location.host.indexOf("play.google.com") != 1){
    window.location.replace(fdroid)
}

// Zoom | Jisti
if(window.location.host.indexOf("zoom.us") != 1){
    window.location.replace(jisti)
}

// Microsoft | FSF
if(window.location.host.indexOf("microsoft.com") != 1){
    window.location.replace(fsf)
}