Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

目前為 2021-12-27 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name              Open-Source Alternative Redirector
// @namespace    -
// @version           0.3
// @description    Redirects you from proprietary web-services to ethical alternatives.
// @author             NotYou
// @include             *youtube.com/*
// @include             *google.com/*
// @include             *reddit.com/*
// @include             *twitter.com/*
// @include             *instagram.com/*
// @include             *facebook.com/*
// @include             *live.com/*
// @include             *mail.ru/*
// @include             *wikipedia.com/*
// @include             *pastebin.com/*
// @include             *mediafire.com/*
// @include             *speedtest.net/*
// @include             *mega.nz/*
// @include             *play.google.com/*
// @include             *zoom.us/*
// @include             *microsoft.com/*
// @include             *redhat.com/*
// @include             *debian.org/*
// @include             *archlinux.org/*
// @run-at              document-start
// @license           GPLv3
// @license-link    https://www.gnu.org/licenses/gpl-3.0.txt
// @icon                https://icons.iconarchive.com/icons/itweek/knob-toolbar/32/Knob-Shuffle-Off-icon.png
// @grant               none
// ==/UserScript==

/*

﹀ Change Log ﹀

0.3 Version:
- Fixed Live/Proton and Mail/Tatunota includes

0.2 Version:
- Added Email Web-sites
- Added Linux Distributive
- Added Icon

*/

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 protonemail = "https://protonmail.com"
const tatunotaemail = "https://tutanota.com"
const wikiless = "https://wikiless.org"
const privatebin = "https://privatebin.info"
const hedgedoc = "https://pad.snopyta.org"
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"
const nosystemd = "https://nosystemd.org"
const devuan = "https://devuan.org"
const artix = "https://artixlinux.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)
}

// Office | HedgeDoc
if(window.location.host.indexOf("office.com") != 1){
    window.location.replace(hedgedoc)
}

// 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)
}

// Live | Proton Mail
if(window.location.host.indexOf("live.com") != 1){
    window.location.replace(protonmail)
}

// Mail | Tatunota
if(window.location.host.indexOf("mail.ru") != 1){
    window.location.replace(tatunotamail)
}

// 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)
}

// Redhat | NOsystemd
if(window.location.host.indexOf("redhat.com") != 1){
    window.location.replace(nosystemd)
}

// Debian | Devuan
if(window.location.host.indexOf("debian.org") != 1){
    window.location.replace(devuan)
}

// Arch Linux | Artix Linux
if(window.location.host.indexOf("archlinux.org") != 1){
    window.location.replace(artix)
}