Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

Stan na 09-03-2022. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name Open-Source Alternative Redirector
// @namespace -
// @version 0.6
// @description Redirects you from proprietary web-services to ethical alternatives.
// @author NotYou
// @include *youtube.com/*
// @include *google.com/*
// @include *yahoo.com/*
// @include *bing.com/*
// @include *duckduckgo.com/*
// @include *reddit.com/*
// @include *twitter.com/*
// @include *instagram.com/*
// @include *wikipedia.org/*
// @run-at document-start
// @license GPL-3.0-or-later
// @icon https://icons.iconarchive.com/icons/itweek/knob-toolbar/32/Knob-Shuffle-Off-icon.png
// @grant none
// ==/UserScript==

/*

﹀ Change Log ﹀

0.6 Version:
- Redirect from yahoo
- Redirect from bing
- Redirect from duckduckgo

0.5 Version:
- Support for other languages for wikiless/wikipedia
- Better Instances format

*/

// INSTANCES //
const
invidious = "yewtu.be",
// Instances: https://docs.invidious.io/Invidious-Instances.md

searx = "search.mdosch.de",
// Instances: https://searx.space

libreddit = "reddit.invak.id",
// Instaces: https://rustrepo.com/repo/spikecodes-libreddit-rust-miscellaneous#instances

nitter = "nitter.snopyta.org",
// Instaces: https://github-wiki-see.page/m/zedeus/nitter/wiki/Instances

bibliogram = "bibliogram.pussthecat.org",
// Instaces: https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md

wikiless = "wikiless.org"
// Instances: https://codeberg.org/orenom/Wikiless/src/branch/main/instances.json

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

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

// Yahoo | SearX //
if(window.location.host.indexOf('yahoo.com') != -1){
    let search = window.location.search.replace('?p', '?q')
    window.location.replace('https://' + searx + window.location.pathname + search)
}

// Bing | SearX //
if(window.location.host.indexOf('bing.com') != -1){
    window.location.replace('https://' + searx + window.location.pathname + window.location.search)
}

// DuckDuckGo | SearX //
if(window.location.host.indexOf('duckduckgo.com') != -1){
    window.location.replace('https://' + searx + window.location.pathname + window.location.search)
}

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

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

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

// Wikipedia | Wikiless //
if(window.location.host.indexOf('wikipedia.org') != -1){
    let url = new URL(window.location.href);
    let sub = url.hostname.split('.')[0];
    window.location.replace('https://' + wikiless + window.location.pathname + '?lang=' + sub)
}