aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-01-18 18:17:43 +0300
committerManeraKai <manerakai@protonmail.com>2023-01-18 18:17:43 +0300
commita6098e6ec27c2c17aab17d3f63b702d71c9fda3d (patch)
tree34b40293f391fbcb581b6b735afeb27beb1e6802 /src
parentMerge branch 'master' of https://github.com/libredirect/libredirect (diff)
downloadlibredirect-a6098e6ec27c2c17aab17d3f63b702d71c9fda3d.zip
Removed Bibliogram https://github.com/libredirect/libredirect/issues/573
Diffstat (limited to 'src')
-rw-r--r--src/assets/javascripts/general.js2
-rw-r--r--src/assets/javascripts/services.js7
-rw-r--r--src/config.json19
3 files changed, 1 insertions, 27 deletions
diff --git a/src/assets/javascripts/general.js b/src/assets/javascripts/general.js
index 7fc9d1ba..b2ad7c25 100644
--- a/src/assets/javascripts/general.js
+++ b/src/assets/javascripts/general.js
@@ -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()
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 4b8f9188..159e39e2 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -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":
diff --git a/src/config.json b/src/config.json
index ca279a8e..1ccbf9a6 100644
--- a/src/config.json
+++ b/src/config.json
@@ -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": {