about summary refs log tree commit diff stats
path: root/src/assets/javascripts/services.js
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/assets/javascripts/services.js
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/assets/javascripts/services.js')
-rw-r--r--src/assets/javascripts/services.js7
1 files changed, 0 insertions, 7 deletions
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":