Greasy Fork

Greasy Fork is available in English.

Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

当前为 2022-03-08 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Open-Source Alternative Redirector
// @namespace -
// @version 0.5
// @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 *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.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 = "searx.xyz", // 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)
}

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