Privacy Frontend Redirect

Redirect to privacy friendly front-ends of popular services.

目前為 2023-01-31 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Privacy Frontend Redirect
// @namespace   https://greasyfork.org/en/scripts/458875-privacy-frontend-redirect
// @match       *://*youtube.com/*
// @match       *://*youtu.be/*
// @match       *://*twitter.com/*
// @match       *://*reddit.com/*
// @match       *://*imgur.com/*
// @match       *://*instagram.com/*
// @match       *://*tiktok.com/*
// @match       *://*imdb.com/*
// @match       *://*fandom.com/*
// @match       *://*translate.google.com/*
// @match       *://*medium.com/*
// @grant       none
// @version     2.1.3
// @author      NoUser
// @description Redirect to privacy friendly front-ends of popular services.
// @run-at      document-start
// @license MIT
// ==/UserScript==

// YouTube
if (window.location.hostname === "www.youtube.com") {
window.location.href = window.location.href.replace("www.youtube.com", "inv.librefront.com");
}

// Twitter
const t = ["nitter.sneed.network", "canada.unofficialbird.com", "nitter.privacytools.io", "nitter.foss.wtf", "nitter.privacy.com.de", "nitter.1d4.us", "nitter.pussthecat.org", "nitter.poast.org", "twitter.censors.us"]
const rt = t[Math.floor(Math.random() * t.length)];

if (window.location.hostname === "twitter.com") {
window.location.href = window.location.href.replace("twitter.com", rt);
} else if(window.location.hostname === "mobile.twitter.com") {
window.location.href = window.location.href.replace("mobile.twitter.com", rt);
}

// Reddit
const r = ["libreddit.eu.org", "libreddit.spike.codes", "lr.odyssey346.dev", "rd.funami.tech", "libreddit.dcs0.hu", "lr.vern.cc", "www.troddit.com"]
const rr = r[Math.floor(Math.random() * r.length)];

if (window.location.hostname === "www.reddit.com") {
window.location.href = window.location.href.replace("www.reddit.com", rr);
}
// Imgur
const i = ["rimgo.pussthecat.org", "rimgo.totaldarkness.net", "rimgo.vern.cc", "imgur.artemislena.eu", "rimgo.privacydev.net", "rimgo.bus-hit.me"]
const ri = i[Math.floor(Math.random() * i.length)];

if (window.location.hostname === "imgur.com") {
window.location.href = window.location.href.replace("imgur.com", ri);
} else if(window.location.hostname === "i.imgur.com") {
window.location.href = window.location.href.replace("i.imgur.com", ri);
}

// Instagram
const ins = ["bibliogram.froth.zone", "ig.tokhmi.xyz", "bibliogram.priv.pw"]
const rins = ins[Math.floor(Math.random() * ins.length)];

if (window.location.hostname === "www.instagram.com") {
window.location.href = window.location.href.replace("www.instagram.com", rins);
}

// TikTok
const ti = ["proxitok.pussthecat.org", "proxitok.esmailelbob.xyz", "tok.habedieeh.re", "tok.artemislena.eu", "proxitok.privacydev.net", "proxitok.manasiwibi.com"]
const rti = ti[Math.floor(Math.random() * ti.length)];

if (window.location.hostname === "www.tiktok.com") {
window.location.href = window.location.href.replace("www.tiktok.com", rti);
}

// IMDB
const im = ["ld.vern.cc", "libremdb.esmailelbob.xyz", "lmdb.tokhmi.xyz", "libremdb.iket.me", "libremdb.pussthecat.org"]
const rim = im[Math.floor(Math.random() * im.length)];

if (window.location.hostname === "www.imdb.com") {
window.location.href = window.location.href.replace("www.imdb.com", rim);
}

// Fandom
const fan = ["https://bw.vern.cc", "https://breezewiki.esmailelbob.xyz", "https://bw.artemislena.eu", "https://breezewiki.pussthecat.org"]
const rfan = fan[Math.floor(Math.random() * fan.length)];
var sub = window.location.host.split('.')[0]

if (window.location.href.match(/^https:\/\/(.+)?\.fandom\.com\//)) { window.location.replace(rfan + "/" + sub + window.location.pathname) }


// Google Translate
const tr = ["lingva.ml", "translate.plausibility.cloud", "lingva.lunar.icu", "translate.projectsegfau.lt", "translate.jae.fi"]
const rtr = tr[Math.floor(Math.random() * tr.length)];

if (window.location.hostname === "translate.google.com") {
window.location.href = window.location.href.replace("translate.google.com", rtr);
}

// Medium
const m = ["scribe.rip", "scribe.nixnet.services", "scribe.citizen4.eu", "scribe.bus-hit.me", "scribe.froth.zone", "scribe.rawbit.ninja"]
const rm = m[Math.floor(Math.random() * m.length)];

if (window.location.hostname === "medium.com") {
window.location.href = window.location.href.replace("medium.com", rm);
}