mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-02-02 20:36:51 +01:00
Removed Bibliogram https://github.com/libredirect/libredirect/issues/573
This commit is contained in:
parent
29201bb7b1
commit
a6098e6ec2
@ -1,6 +1,6 @@
|
||||
<img src="./img/libredirect_full.svg" height="50"/>
|
||||
|
||||
A web extension that redirects YouTube, Twitter, Instagram... requests to alternative privacy friendly frontends and backends.
|
||||
A web extension that redirects YouTube, Twitter, TikTok... requests to alternative privacy friendly frontends and backends.
|
||||
|
||||
[![Matrix Badge](https://img.shields.io/matrix/libredirect:matrix.org?label=matrix%20chat)](https://matrix.to/#/#libredirect:matrix.org)
|
||||
[![Firefox users Badge](https://img.shields.io/amo/users/libredirect?label=Firefox%20users)](https://addons.mozilla.org/firefox/addon/libredirect/)
|
||||
@ -21,7 +21,6 @@ A web extension that redirects YouTube, Twitter, Instagram... requests to altern
|
||||
- Youtube <span>→</span> [Invidious](https://github.com/iv-org/invidious), [Piped](https://github.com/TeamPiped/Piped), [Piped-Material](https://github.com/mmjee/Piped-Material), [CloudTube](https://sr.ht/~cadence/tube/), [FreeTube](https://github.com/FreeTubeApp/FreeTube), [Yattee](https://github.com/yattee/yattee)
|
||||
- Youtube Music <span>→</span> [Beatbump](https://github.com/snuffyDev/Beatbump), [Hyperpipe](https://codeberg.org/Hyperpipe/Hyperpipe)
|
||||
- Twitter <span>→</span> [Nitter](https://github.com/zedeus/nitter)
|
||||
- Instagram <span>→</span> [Bibliogram](https://sr.ht/~cadence/bibliogram/)
|
||||
- TikTok <span>→</span> [ProxiTok](https://github.com/pablouser1/ProxiTok)
|
||||
- Reddit <span>→</span> [Libreddit](https://github.com/spikecodes/libreddit#instances), [Teddit](https://codeberg.org/teddit/teddit#instances)
|
||||
- Imgur <span>→</span> [Rimgo](https://codeberg.org/video-prize-ranch/rimgo)
|
||||
|
10
package.json
10
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libredirect",
|
||||
"description": "Redirects YouTube, Twitter, Instagram and more to privacy friendly frontends.",
|
||||
"description": "Redirects YouTube, Twitter, TikTok and more to privacy friendly frontends.",
|
||||
"engines": {
|
||||
"node": ">=16.13.1",
|
||||
"npm": ">=8.1.2"
|
||||
@ -26,14 +26,6 @@
|
||||
"web-ext": "^7.2.0"
|
||||
},
|
||||
"webExt": {
|
||||
"ignoreFiles": [
|
||||
"instances/get_instances.py",
|
||||
"instances/beatbump.json",
|
||||
"instances/bibliogram.json",
|
||||
"instances/cloudtube.json",
|
||||
"instances/facil.json",
|
||||
"instances/neuters.json"
|
||||
],
|
||||
"sourceDir": "./src/",
|
||||
"run": {
|
||||
"browserConsole": true
|
||||
|
@ -31,7 +31,7 @@ async function initDefaults() {
|
||||
regex: [],
|
||||
},
|
||||
theme: "detect",
|
||||
popupServices: ["youtube", "twitter", "instagram", "tiktok", "imgur", "reddit", "quora", "translate", "maps"],
|
||||
popupServices: ["youtube", "twitter", "tiktok", "imgur", "reddit", "quora", "translate", "maps"],
|
||||
},
|
||||
},
|
||||
() => resolve()
|
||||
|
@ -101,12 +101,6 @@ function redirect(url, type, initiator, forceRedirection, tabId) {
|
||||
.replace(/\/search\?q=.*/, searchQuery => searchQuery.replace("?q=", "/") + "?filter=all")
|
||||
case "hyperpipe":
|
||||
return `${randomInstance}${url.pathname}${url.search}`.replace(/\/search\?q=.*/, searchQuery => searchQuery.replace("?q=", "/"))
|
||||
case "bibliogram":
|
||||
const reservedPaths = ["u", "p", "privacy"]
|
||||
if (url.pathname === "/" || reservedPaths.includes(url.pathname.split("/")[1])) return `${randomInstance}${url.pathname}${url.search}`
|
||||
if (url.pathname.startsWith("/reel")) return `${randomInstance}${url.pathname}`
|
||||
if (url.pathname.startsWith("/tv")) return `${randomInstance}/p${url.pathname.replace(/\/tv/i, "")}${url.search}`
|
||||
else return `${randomInstance}/u${url.pathname}${url.search}` // Likely a user profile, redirect to '/u/...'
|
||||
case "lbryDesktop":
|
||||
return url.href.replace(/^https?:\/{2}odysee\.com\//, "lbry://").replace(/:(?=[a-zA-Z0-9])/g, "#")
|
||||
case "searx":
|
||||
@ -477,7 +471,6 @@ function reverse(url, urlString) {
|
||||
if (!all(service, null, options, config).includes(protocolHost)) continue
|
||||
|
||||
switch (service) {
|
||||
case "instagram":
|
||||
case "youtube":
|
||||
case "imdb":
|
||||
case "imgur":
|
||||
|
@ -141,25 +141,6 @@
|
||||
"embeddable": true,
|
||||
"url": "https://twitter.com"
|
||||
},
|
||||
"instagram": {
|
||||
"frontends": {
|
||||
"bibliogram": {
|
||||
"name": "Bibliogram",
|
||||
"instanceList": true,
|
||||
"url": "https://sr.ht/~cadence/bibliogram/"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
"^https?:\\/{2}(www\\.)?instagram\\.com\\/?(p\\/|reel\\/|$)"
|
||||
],
|
||||
"name": "Instagram",
|
||||
"options": {
|
||||
"enabled": true
|
||||
},
|
||||
"imageType": "png",
|
||||
"embeddable": false,
|
||||
"url": "https://instagram.com"
|
||||
},
|
||||
"tiktok": {
|
||||
"frontends": {
|
||||
"proxiTok": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user