From d4151c826fff5008a0d6017feced261061585deb Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 21 Sep 2024 09:30:22 +0300 Subject: Restricted maps regex --- src/config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index 045d7f20..9767bf43 100644 --- a/src/config.json +++ b/src/config.json @@ -1147,7 +1147,8 @@ }, "targets": [ "^https?:\\/{2}maps\\.libredirect\\.invalid", - "^https?:\\/{2}(((www|maps)\\.)?(google\\.).*(\\/maps)|maps\\.(google\\.).*)" + "^https?:\\/{2}(www\\.)?maps\\.google(\\.[a-z]{2,3}){1,2}\\/", + "^https?:\\/{2}(www\\.)?google(\\.[a-z]{2,3}){1,2}\\/maps\\/?" ], "name": "Maps", "options": { -- cgit 1.4.1 From 33d2490faebeb3a8447fd3fe9ec92911db69608b Mon Sep 17 00:00:00 2001 From: DokterKaj <54882101+DokterKaj@users.noreply.github.com> Date: Sat, 28 Sep 2024 13:31:22 +0800 Subject: Update config.json --- src/config.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index 9767bf43..f25b8601 100644 --- a/src/config.json +++ b/src/config.json @@ -268,8 +268,8 @@ } }, "targets": [ - "^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.)?(reddit|reddittorjg6rue252oqsxryoxengawnmo46qy4kyii5wtqnwfj4ooad)\\.(com|onion)(?=\\/u(ser)?\\/|\\/r\\/|\\/search|\\/new|\\/?$)", - "^https?:\\/{2}(i|(external-)?preview)\\.redd\\.it" + "^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.)?(reddit|reddittorjg6rue252oqsxryoxengawnmo46qy4kyii5wtqnwfj4ooad)\\.(com|onion)(?=\\/u(ser)?\\/|\\/r\\/|\\/search|\\/new|\\/comments|\\/?$)", + "^https?:\\/{2}((i|(external-)?preview)\\.)?redd\\.it" ], "name": "Reddit", "options": { @@ -1358,4 +1358,4 @@ "url": "https://coub.com" } } -} \ No newline at end of file +} -- cgit 1.4.1 From f99f6218a622248292a386f001a41102e966bf4e Mon Sep 17 00:00:00 2001 From: Binzy_Boi Date: Mon, 7 Oct 2024 05:02:23 +0000 Subject: Update src/config.json Changing "PokeTube" to "Poke" and updating repo URL. --- src/config.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index 9767bf43..83e5a137 100644 --- a/src/config.json +++ b/src/config.json @@ -52,15 +52,15 @@ "instanceList": true, "url": "https://github.com/mmjee/Piped-Material" }, - "poketube": { + "poke": { "excludeTargets": [ 2, 3 ], - "name": "PokeTube", + "name": "Poke", "embeddable": true, "instanceList": true, - "url": "https://codeberg.org/Ashley/poketube" + "url": "https://codeberg.org/ashley/poke" }, "cloudtube": { "name": "CloudTube", -- cgit 1.4.1 From d1d0ffa17f0f402e4f60cfb22a29736f6b4c5af8 Mon Sep 17 00:00:00 2001 From: Binzy_Boi Date: Mon, 7 Oct 2024 08:52:48 +0000 Subject: Update src/config.json Fixing Frontend link for SkunkyArt, as it was linking to the Shoelace repo. --- src/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index 83e5a137..e2af59b1 100644 --- a/src/config.json +++ b/src/config.json @@ -1299,7 +1299,7 @@ "skunkyArt": { "name": "SkunkyArt", "instanceList": true, - "url": "https://git.sr.ht/~nixgoat/shoelace" + "url": "https://codeberg.org/skunky/skunkyart" } }, "targets": [ -- cgit 1.4.1 From c2d12d4d2a1f27f07caf8518654cdab935072f1d Mon Sep 17 00:00:00 2001 From: DokterKaj <54882101+DokterKaj@users.noreply.github.com> Date: Sun, 13 Oct 2024 13:09:54 +0800 Subject: fix stackexchange.com, *.meta.stackexchange.com not redirecting --- src/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index f25b8601..897a0e2c 100644 --- a/src/config.json +++ b/src/config.json @@ -753,7 +753,7 @@ }, "targets": [ "^https?:\\/{2}(www\\.)?([a-zA-Z]+\\.)?stackoverflow\\.com\\/", - "(?!^https?:\\/{2}(api|data|blog)\\.)^https?:\\/{2}([a-zA-Z0-9-]+\\.)stackexchange\\.com\\/", + "^https?:\\/{2}((?!(api|data|blog)\\.)[a-zA-Z0-9-]+\\.(meta\\.)?)?stackexchange\\.com\\/", "^https?:\\/{2}(www\\.)?([a-zA-Z]+\\.)?(askubuntu\\.com|mathoverflow\\.net|serverfault\\.com|stackapps\\.com|superuser\\.com)\\/" ], "name": "Stack Overflow", -- cgit 1.4.1 From d8484a46c556a39aa0c5dd9315582033acb509c9 Mon Sep 17 00:00:00 2001 From: Binzy_Boi Date: Sat, 19 Oct 2024 23:27:41 +0000 Subject: Update src/config.json --- src/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index e2af59b1..34b13c7c 100644 --- a/src/config.json +++ b/src/config.json @@ -52,7 +52,7 @@ "instanceList": true, "url": "https://github.com/mmjee/Piped-Material" }, - "poke": { + "poketube": { "excludeTargets": [ 2, 3 -- cgit 1.4.1 From 85dd515d204791a780a9c980c62a2f57ad8a274a Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 2 Nov 2024 22:17:54 +0300 Subject: Added DuckDuckGo AI Chat https://github.com/libredirect/browser_extension/issues/969 --- src/assets/images/chatGpt-icon-light.svg | 10 ++++++++++ src/assets/images/chatGpt-icon.svg | 1 + src/assets/javascripts/services.js | 3 +++ src/config.json | 19 +++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 src/assets/images/chatGpt-icon-light.svg create mode 100644 src/assets/images/chatGpt-icon.svg (limited to 'src/config.json') diff --git a/src/assets/images/chatGpt-icon-light.svg b/src/assets/images/chatGpt-icon-light.svg new file mode 100644 index 00000000..b3df81fb --- /dev/null +++ b/src/assets/images/chatGpt-icon-light.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/images/chatGpt-icon.svg b/src/assets/images/chatGpt-icon.svg new file mode 100644 index 00000000..e04db75a --- /dev/null +++ b/src/assets/images/chatGpt-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index e85b5bf1..0a6b3e94 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -555,6 +555,9 @@ function rewrite(url, originUrl, frontend, randomInstance) { const accountReg = /^\/([^\/]+)\/?$/.exec(url.pathname) if (accountReg) return `${randomInstance}/account${url.pathname}${url.search}` + case "duckDuckGoAiChat": + return "https://duckduckgo.com/?q=DuckDuckGo+AI+Chat&ia=chat&duckai=1" + case "piped": case "pipedMaterial": case "cloudtube": diff --git a/src/config.json b/src/config.json index 340df46c..48eecc24 100644 --- a/src/config.json +++ b/src/config.json @@ -219,6 +219,25 @@ "embeddable": true, "url": "https://twitter.com" }, + "chatGpt": { + "frontends": { + "duckDuckGoAiChat": { + "name": "DuckDuckGo AI Chat", + "instanceList": false, + "url": "https://duckduckgo.com/duckduckgo-help-pages/aichat/" + } + }, + "targets": ["^https?:\\/{2}chatgpt\\.com"], + "name": "ChatGPT", + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "frontend": "duckDuckGoAiChat", + "redirectOnlyInIncognito": false + }, + "imageType": "svgMono", + "url": "https://chatgpt.com/" + }, "bluesky": { "frontends": { "skyview": { -- cgit 1.4.1 From 2d8b01dec9c0f3bd904c8630fe1ffa09c15d0b45 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 3 Dec 2024 23:11:55 +0100 Subject: Update Tubo main instance and source repository --- src/assets/javascripts/services.js | 4 ++-- src/config.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 0a6b3e94..98c39908 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -814,8 +814,8 @@ const defaultInstances = { safetwitch: ["https://safetwitch.drgns.space"], twineo: ["https://twineo.exozy.me"], proxigram: ["https://ig.opnxng.com"], - tuboYoutube: ["https://tubo.migalmoreno.com"], - tuboSoundcloud: ["https://tubo.migalmoreno.com"], + tuboYoutube: ["https://tubo.media"], + tuboSoundcloud: ["https://tubo.media"], tekstoLibre: ["https://davilarek.github.io/TekstoLibre"], skyview: ["https://skyview.social"], priviblur: ["https://pb.bloat.cat"], diff --git a/src/config.json b/src/config.json index 48eecc24..f5f3819d 100644 --- a/src/config.json +++ b/src/config.json @@ -82,7 +82,7 @@ "name": "Tubo", "embeddable": false, "instanceList": true, - "url": "https://git.migalmoreno.com/tubo/about/", + "url": "https://github.com/migalmoreno/tubo", "excludeTargets": [ 2, 3 @@ -558,7 +558,7 @@ "name": "Tubo", "embeddable": false, "instanceList": true, - "url": "https://git.migalmoreno.com/tubo/about/" + "url": "https://github.com/migalmoreno/tubo" } }, "targets": [ -- cgit 1.4.1 From ce47e8cff701d4c87605d4e30b5fa4f60b555b55 Mon Sep 17 00:00:00 2001 From: Laptop Date: Sun, 8 Dec 2024 11:03:50 +0200 Subject: add soundcloak --- src/assets/javascripts/services.js | 66 ++++++++++++++++++++++++++++++++++++++ src/config.json | 6 ++++ 2 files changed, 72 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 0a6b3e94..7b9ce986 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -557,7 +557,40 @@ function rewrite(url, originUrl, frontend, randomInstance) { case "duckDuckGoAiChat": return "https://duckduckgo.com/?q=DuckDuckGo+AI+Chat&ia=chat&duckai=1" + + case "soundcloak": + if (url.pathname.startsWith("/feed") || url.pathname.startsWith("/stream")) { // this feature requires authentication and is unsupported, so just redirect to main page + return randomInstance + } + + if (url.pathname.startsWith("/search")) { + if (!url.search) { + return randomInstance + } + + let type = "" + if (url.pathname.startsWith("/search/sounds")) { + type = "tracks" + } else if (url.pathname.startsWith("/search/people")) { + type = "users" + } else if (url.pathname.startsWith("/search/albums") || url.pathname.startsWith("/search/sets")) { + type = "playlists" + } + + if (type) { + type = "&type="+type + } else { + return randomInstance // fallback for unsupported search types (searching for anything for example) + } + + return `${randomInstance}/search${url.search}${type}` + } + + if (url.host == "on.soundcloud.com") { + return `${randomInstance}/on${url.pathname}` + } + return `${randomInstance}${url.pathname}${url.search}` case "piped": case "pipedMaterial": case "cloudtube": @@ -762,6 +795,38 @@ async function reverse(url) { return `${config.services[service].url}/${url.search.slice(1)}` case "goodreads": return `https://goodreads.com${url.pathname}${url.search}` + case "soundcloud": + if (frontend == "soundcloak") { + if (url.pathname.includes("/_/")) { // soundcloak-specific pages + return `${config.services[service].url}${url.pathname.split("/_/")[0]}` + } + + if (url.pathname == "/search") { + let type = url.searchParams.get("type") + switch (type) { + case "playlists": + type = "sets" + break + case "tracks": + type = "sounds" + break + case "users": + type = "people" + break + default: + type = "" + } + + url.searchParams.delete("type") + if (!type) { + return `${config.services[service].url}/search?${url.searchParams.toString()}` + } else { + return `${config.services[service].url}/search/${type}?${url.searchParams.toString()}` + } + } + + return `${config.services[service].url}${url.pathname}` + } default: return } @@ -828,6 +893,7 @@ const defaultInstances = { ytify: ["https://ytify.netlify.app"], nerdsForNerds: ["https://nn.vern.cc"], koub: ["https://koub.clovius.club"], + soundcloak: ["https://soundcloak.fly.dev"] } async function getDefaults() { diff --git a/src/config.json b/src/config.json index 48eecc24..70f38c8f 100644 --- a/src/config.json +++ b/src/config.json @@ -559,6 +559,12 @@ "embeddable": false, "instanceList": true, "url": "https://git.migalmoreno.com/tubo/about/" + }, + "soundcloak": { + "name": "soundcloak", + "embeddable": false, + "instanceList": true, + "url": "https://github.com/maid-zone/soundcloak" } }, "targets": [ -- cgit 1.4.1 From d71531f7f8eb116790af788c14fae8f9033c5193 Mon Sep 17 00:00:00 2001 From: Laptop Date: Fri, 27 Dec 2024 12:47:44 +0200 Subject: github => git.maid.zone --- src/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index 70f38c8f..d5360ac8 100644 --- a/src/config.json +++ b/src/config.json @@ -564,7 +564,7 @@ "name": "soundcloak", "embeddable": false, "instanceList": true, - "url": "https://github.com/maid-zone/soundcloak" + "url": "https://git.maid.zone/stuff/soundcloak" } }, "targets": [ -- cgit 1.4.1 From bfaec2065b0b05c926c229977cfa617332751933 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 28 Dec 2024 23:33:13 +0300 Subject: Added Embed support for viewtube https://codeberg.org/LibRedirect/browser_extension/issues/163 --- src/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index d5360ac8..dfc77db7 100644 --- a/src/config.json +++ b/src/config.json @@ -122,7 +122,7 @@ }, "viewtube": { "name": "ViewTube", - "embeddable": false, + "embeddable": true, "instanceList": true, "url": "https://github.com/ViewTube/viewtube" }, -- cgit 1.4.1 From 9df5a680b964b35d539db35ec8454b5553f9c734 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 14:30:55 +0300 Subject: Added Ultimate Tab https://github.com/libredirect/browser_extension/issues/942 --- src/assets/javascripts/services.js | 14 +++++++++----- src/config.json | 5 +++++ 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 36da7481..34233453 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -387,7 +387,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { case "invidious": { // tracker url.searchParams.delete("si") - + if (type == "sub_frame") url.searchParams.append("autoplay", "0") if (url.hostname == "youtu.be" || (url.hostname.endsWith("youtube.com") && url.pathname.startsWith("/live"))) { @@ -511,6 +511,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { } return `${randomInstance}${url.pathname}${url.search}` } + case "ultimateTab": case "freetar": if (url.pathname.startsWith("/search.php")) { url.searchParams.set("search_term", url.searchParams.get("value")) @@ -564,7 +565,8 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { return "https://duckduckgo.com/?q=DuckDuckGo+AI+Chat&ia=chat&duckai=1" case "soundcloak": - if (url.pathname.startsWith("/feed") || url.pathname.startsWith("/stream")) { // this feature requires authentication and is unsupported, so just redirect to main page + if (url.pathname.startsWith("/feed") || url.pathname.startsWith("/stream")) { + // this feature requires authentication and is unsupported, so just redirect to main page return randomInstance } @@ -583,7 +585,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { } if (type) { - type = "&type="+type + type = "&type=" + type } else { return randomInstance // fallback for unsupported search types (searching for anything for example) } @@ -802,7 +804,8 @@ async function reverse(url) { return `https://goodreads.com${url.pathname}${url.search}` case "soundcloud": if (frontend == "soundcloak") { - if (url.pathname.includes("/_/")) { // soundcloak-specific pages + if (url.pathname.includes("/_/")) { + // soundcloak-specific pages return `${config.services[service].url}${url.pathname.split("/_/")[0]}` } @@ -892,13 +895,14 @@ const defaultInstances = { nitter: ["https://nitter.privacydev.net"], pasted: ["https://pasted.drakeerv.com"], freetar: ["https://freetar.de"], + ultimateTab: ["https://ultimate-tab.com"], ratAintTieba: ["https://rat.fis.land"], shoelace: ["https://shoelace.mint.lgbt"], skunkyArt: ["https://skunky.bloat.cat"], ytify: ["https://ytify.us.kg"], nerdsForNerds: ["https://nn.vern.cc"], koub: ["https://koub.clovius.club"], - soundcloak: ["https://soundcloak.fly.dev"] + soundcloak: ["https://soundcloak.fly.dev"], } async function getDefaults() { diff --git a/src/config.json b/src/config.json index 13f9d761..55074df4 100644 --- a/src/config.json +++ b/src/config.json @@ -1262,6 +1262,11 @@ "name": "Freetar", "instanceList": true, "url": "https://github.com/kmille/freetar" + }, + "ultimateTab": { + "name": "Ultimate Tab", + "instanceList": true, + "url": "https://github.com/BenoitBellegarde/UltimateTab" } }, "targets": [ -- cgit 1.4.1 From 95f2fae19ac763d4e4aa4d3c7e0f6636898c3b59 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 14:37:32 +0300 Subject: Added Troddit https://github.com/libredirect/browser_extension/issues/1002 --- src/assets/javascripts/services.js | 6 +++--- src/config.json | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 34233453..8f10a3a9 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -230,10 +230,8 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { return `${randomInstance}/preview/external-pre${url.pathname}${url.search}` case "i": return `${randomInstance}/img${url.pathname}` - default: - return `${randomInstance}/comments${url.pathname}` } - return randomInstance + return `${randomInstance}/comments${url.pathname}` } case "teddit": if (/^(?:(?:external-)?preview|i)\.redd\.it/.test(url.hostname)) { @@ -241,6 +239,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { else return `${randomInstance}${url.pathname}${url.search}&teddit_proxy=${url.hostname}` } return `${randomInstance}${url.pathname}${url.search}` + case "troddit": case "eddrit": if (/^(?:(?:external-)?preview|i)\.redd\.it/.test(url.hostname)) return randomInstance return `${randomInstance}${url.pathname}${url.search}` @@ -853,6 +852,7 @@ const defaultInstances = { proxiTok: ["https://proxitok.pabloferreiro.es"], redlib: ["https://safereddit.com"], eddrit: ["https://eddrit.com"], + troddit: ["https://www.troddit.com"], scribe: ["https://scribe.rip"], libMedium: ["https://md.vern.cc"], quetre: ["https://quetre.iket.me"], diff --git a/src/config.json b/src/config.json index 55074df4..e49a044a 100644 --- a/src/config.json +++ b/src/config.json @@ -284,6 +284,12 @@ "instanceList": true, "url": "https://github.com/corenting/eddrit", "localhost": false + }, + "troddit": { + "name": "Troddit", + "instanceList": false, + "url": "https://github.com/burhan-syed/troddit", + "localhost": false } }, "targets": [ @@ -1265,7 +1271,7 @@ }, "ultimateTab": { "name": "Ultimate Tab", - "instanceList": true, + "instanceList": false, "url": "https://github.com/BenoitBellegarde/UltimateTab" } }, -- cgit 1.4.1 From 4dbc36c55929dd0cc40260dd786efe21b5503280 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 14:49:35 +0300 Subject: Added GoCook https://github.com/libredirect/browser_extension/issues/988 --- src/assets/images/chefkoch-icon.svg | 43 +++++++++++++++++++++++++++++++++++++ src/assets/javascripts/services.js | 1 + src/config.json | 21 ++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 src/assets/images/chefkoch-icon.svg (limited to 'src/config.json') diff --git a/src/assets/images/chefkoch-icon.svg b/src/assets/images/chefkoch-icon.svg new file mode 100644 index 00000000..12e1f3ba --- /dev/null +++ b/src/assets/images/chefkoch-icon.svg @@ -0,0 +1,43 @@ + + diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 8f10a3a9..5fe3e2eb 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -903,6 +903,7 @@ const defaultInstances = { nerdsForNerds: ["https://nn.vern.cc"], koub: ["https://koub.clovius.club"], soundcloak: ["https://soundcloak.fly.dev"], + gocook: ["https://cook.adminforge.de"], } async function getDefaults() { diff --git a/src/config.json b/src/config.json index e49a044a..ca38d2ec 100644 --- a/src/config.json +++ b/src/config.json @@ -1392,6 +1392,27 @@ }, "imageType": "svg", "url": "https://coub.com" + }, + "chefkoch": { + "frontends": { + "gocook": { + "name": "GoCook", + "instanceList": true, + "url": "https://github.com/NoUmlautsAllowed/gocook" + } + }, + "targets": [ + "^https?:\\/{2}(www\\.)?chefkoch\\.de" + ], + "name": "Chefkoch", + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "frontend": "gocook", + "redirectOnlyInIncognito": false + }, + "imageType": "svg", + "url": "https://www.chefkoch.de" } } } -- cgit 1.4.1 From fc7a1c5f124b601d59363c61cb2db76398362117 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 14:56:43 +0300 Subject: Added Painterest https://github.com/libredirect/browser_extension/issues/1011 --- src/assets/javascripts/services.js | 6 +++++- src/config.json | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 5fe3e2eb..c602b917 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -358,7 +358,10 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { } } case "binternet": - if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${url.href}` + if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${encodeURIComponent(url.href)}` + return `${randomInstance}${url.pathname}${url.search}` + case "painterest": + if (url.hostname == "i.pinimg.com") return `${randomInstance}/_/proxy?url=${encodeURIComponent(url.href)}` return `${randomInstance}${url.pathname}${url.search}` case "laboratory": { let path = url.pathname @@ -880,6 +883,7 @@ const defaultInstances = { wolfreeAlpha: ["https://gqq.gitlab.io", "https://uqq.gitlab.io"], laboratory: ["https://lab.vern.cc"], binternet: ["https://bn.bloat.cat"], + painterest: ["https://pt.bloat.cat"], pixivFe: ["https://pixivfe.exozy.me"], liteXiv: ["https://litexiv.exozy.me"], indestructables: ["https://indestructables.private.coffee"], diff --git a/src/config.json b/src/config.json index ca38d2ec..2f779b79 100644 --- a/src/config.json +++ b/src/config.json @@ -541,6 +541,12 @@ "instanceList": true, "url": "https://github.com/Ahwxorg/Binternet", "embeddable": true + }, + "painterest": { + "name": "Painterest", + "instanceList": true, + "url": "https://codeberg.org/thirtysix/painterest", + "embeddable": true } }, "targets": [ -- cgit 1.4.1 From f2f4e674bda71c0d6da1613f6b7a47391fee4fdf Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 15:00:27 +0300 Subject: Added Offtiktok https://github.com/libredirect/browser_extension/issues/1018 --- src/assets/javascripts/services.js | 2 ++ src/config.json | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index c602b917..31325574 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -297,6 +297,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { } return `${randomInstance}${url.pathname}${url.search}${url.hash}` } + case "offtiktok": case "proxiTok": if (url.pathname.startsWith("/email")) return randomInstance return `${randomInstance}${url.pathname}${url.search}` @@ -853,6 +854,7 @@ const defaultInstances = { lightTube: ["https://tube.kuylar.dev"], poketube: ["https://poketube.fun"], proxiTok: ["https://proxitok.pabloferreiro.es"], + offtiktok: ["https://www.offtiktok.com"], redlib: ["https://safereddit.com"], eddrit: ["https://eddrit.com"], troddit: ["https://www.troddit.com"], diff --git a/src/config.json b/src/config.json index 2f779b79..4fb40ae8 100644 --- a/src/config.json +++ b/src/config.json @@ -375,6 +375,12 @@ "instanceList": true, "url": "https://github.com/pablouser1/ProxiTok", "localhost": true + }, + "offtiktok": { + "name": "Offtiktok", + "instanceList": true, + "url": "https://github.com/MarsHeer/offtiktok", + "localhost": false } }, "targets": [ -- cgit 1.4.1 From 756c0ac3e3ea80e2c7678f0abc114094f247dbf3 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 15:09:05 +0300 Subject: Added Wikimore https://github.com/libredirect/browser_extension/issues/1025 --- src/assets/javascripts/services.js | 10 ++++++++++ src/config.json | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 31325574..e5e4cc57 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -287,6 +287,15 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { } case "biblioReads": return `${randomInstance}${url.pathname}${url.search}` + case "wikimore": { + let hostSplit = url.host.split(".") + // wikiless doesn't have mobile view support yet + if (hostSplit[0] != "wikipedia" && hostSplit[0] != "www") { + const lang = url.hostname.split(".")[0] + return `${randomInstance}/wiki/${lang}${url.pathname}${url.search}${url.hash}` + } + return `${randomInstance}${url.pathname}${url.search}${url.hash}` + } case "wikiless": { let hostSplit = url.host.split(".") // wikiless doesn't have mobile view support yet @@ -910,6 +919,7 @@ const defaultInstances = { koub: ["https://koub.clovius.club"], soundcloak: ["https://soundcloak.fly.dev"], gocook: ["https://cook.adminforge.de"], + wikimore: ["https://wikimore.private.coffee"], } async function getDefaults() { diff --git a/src/config.json b/src/config.json index 4fb40ae8..b9d61832 100644 --- a/src/config.json +++ b/src/config.json @@ -1012,6 +1012,11 @@ "name": "Wikiless", "instanceList": true, "url": "https://wikiless.org" + }, + "wikimore": { + "name": "Wikimore", + "instanceList": true, + "url": "https://git.private.coffee/privatecoffee/wikimore" } }, "targets": [ -- cgit 1.4.1 From 5877083ff596c7e496b7105191e045de08b06774 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 15:12:07 +0300 Subject: Added Pasty https://github.com/libredirect/browser_extension/issues/1035 --- src/assets/javascripts/services.js | 1 + src/config.json | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index e5e4cc57..d89f47f2 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -909,6 +909,7 @@ const defaultInstances = { priviblur: ["https://pb.bloat.cat"], nitter: ["https://nitter.privacydev.net"], pasted: ["https://pasted.drakeerv.com"], + pasty: ["https://pasty.lus.pm"], freetar: ["https://freetar.de"], ultimateTab: ["https://ultimate-tab.com"], ratAintTieba: ["https://rat.fis.land"], diff --git a/src/config.json b/src/config.json index b9d61832..3b245c36 100644 --- a/src/config.json +++ b/src/config.json @@ -1264,6 +1264,11 @@ "name": "Pasted", "instanceList": true, "url": "https://github.com/Dragynfruit/pasted" + }, + "pasty": { + "name": "Pasty", + "instanceList": true, + "url": "https://github.com/lus/pasty" } }, "targets": [ -- cgit 1.4.1 From 181b2518e2d6beda9d46ce16e85c681657767ecc Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 27 Jan 2025 22:32:50 +0300 Subject: Added Small https://codeberg.org/LibRedirect/browser_extension/issues/155 --- src/assets/javascripts/services.js | 2 ++ src/config.json | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index d89f47f2..5cc93f45 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -100,6 +100,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { if (/\/@[a-z]+\//.exec(url.pathname)) return randomInstance return `${randomInstance}${url.pathname}${url.search}` } + case "small": case "libMedium": case "scribe": { const regex = url.hostname.match(/^(link|cdn-images-\d+|.*)\.medium\.com/) @@ -869,6 +870,7 @@ const defaultInstances = { troddit: ["https://www.troddit.com"], scribe: ["https://scribe.rip"], libMedium: ["https://md.vern.cc"], + small: ["https://small.bloat.cat"], quetre: ["https://quetre.iket.me"], libremdb: ["https://libremdb.iket.me"], simplyTranslate: ["https://simplytranslate.org"], diff --git a/src/config.json b/src/config.json index 3b245c36..429b7865 100644 --- a/src/config.json +++ b/src/config.json @@ -683,6 +683,11 @@ "name": "LibMedium", "instanceList": true, "url": "https://github.com/realaravinth/libmedium" + }, + "small": { + "name": "Small", + "instanceList": true, + "url": "https://git.private.coffee/PrivateCoffee/small" } }, "targets": [ -- cgit 1.4.1 From 7b988b818f6b9113b2cd760ee3a19ea3d13f9644 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 27 Jan 2025 22:48:12 +0300 Subject: Added Vixipy https://codeberg.org/LibRedirect/browser_extension/issues/169 --- src/assets/javascripts/services.js | 10 ++++++++++ src/config.json | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 5cc93f45..1db192a0 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -397,6 +397,15 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { } return `${randomInstance}${url.pathname}${url.search}` } + case "vixipy": { + const regex = /\/[a-z]{1,3}\/(.*)/.exec(url.pathname) + if (regex) { + let path = regex[1] + if (path.startsWith("tags/")) path = path.replace(/tags/, "tag") + return `${randomInstance}/${path}${url.search}` + } + return `${randomInstance}${url.pathname}${url.search}` + } case "invidious": { // tracker url.searchParams.delete("si") @@ -899,6 +908,7 @@ const defaultInstances = { painterest: ["https://pt.bloat.cat"], pixivFe: ["https://pixivfe.exozy.me"], liteXiv: ["https://litexiv.exozy.me"], + vixipy: ["https://vx.maid.zone"], indestructables: ["https://indestructables.private.coffee"], destructables: ["https://ds.vern.cc"], safetwitch: ["https://safetwitch.drgns.space"], diff --git a/src/config.json b/src/config.json index 429b7865..115bf2eb 100644 --- a/src/config.json +++ b/src/config.json @@ -477,6 +477,11 @@ "name": "LiteXiv", "instanceList": true, "url": "https://codeberg.org/Peaksol/LiteXiv" + }, + "vixipy": { + "name": "Vixipy", + "instanceList": true, + "url": "https://codeberg.org/vixipy/Vixipy" } }, "targets": [ -- cgit 1.4.1 From a1ef0bf8c360e92d3df62e04f906d2d757e2eb6e Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 27 Jan 2025 22:54:17 +0300 Subject: Added Ducks for Ducks https://codeberg.org/LibRedirect/browser_extension/issues/157 --- src/assets/javascripts/services.js | 1 + src/config.json | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 1db192a0..fb42e8b7 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -929,6 +929,7 @@ const defaultInstances = { skunkyArt: ["https://skunky.bloat.cat"], ytify: ["https://ytify.us.kg"], nerdsForNerds: ["https://nn.vern.cc"], + ducksForDucks: ["https://ducksforducks.private.coffee"], koub: ["https://koub.clovius.club"], soundcloak: ["https://soundcloak.fly.dev"], gocook: ["https://cook.adminforge.de"], diff --git a/src/config.json b/src/config.json index 115bf2eb..26453dc2 100644 --- a/src/config.json +++ b/src/config.json @@ -1389,6 +1389,11 @@ "name": "NerdsforNerds", "instanceList": true, "url": "https://git.vern.cc/cobra/NerdsforNerds" + }, + "ducksForDucks": { + "name": "Ducks for Ducks", + "instanceList": true, + "url": "https://git.private.coffee/PrivateCoffee/ducksforducks" } }, "targets": [ -- cgit 1.4.1 From c56a2132edac3cdc9adb690af73ed1e8fb201741 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 27 Jan 2025 23:05:03 +0300 Subject: Added Structables, and made it the default https://codeberg.org/LibRedirect/browser_extension/issues/161 --- src/assets/javascripts/services.js | 1 + src/config.json | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index fb42e8b7..febd1198 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -911,6 +911,7 @@ const defaultInstances = { vixipy: ["https://vx.maid.zone"], indestructables: ["https://indestructables.private.coffee"], destructables: ["https://ds.vern.cc"], + structables: ["https://structables.private.coffee"], safetwitch: ["https://safetwitch.drgns.space"], twineo: ["https://twineo.exozy.me"], proxigram: ["https://ig.opnxng.com"], diff --git a/src/config.json b/src/config.json index 26453dc2..b6338462 100644 --- a/src/config.json +++ b/src/config.json @@ -993,15 +993,20 @@ "instructables": { "name": "Instructables", "frontends": { - "indestructables": { - "name": "Indestructables", + "structables": { + "name": "Structables", "instanceList": true, - "url": "https://indestructables.codeberg.page" + "url": "https://github.com/PrivateCoffee/structables" }, "destructables": { "name": "Destructables", "instanceList": true, "url": "https://git.vern.cc/cobra/Destructables" + }, + "indestructables": { + "name": "Indestructables", + "instanceList": true, + "url": "https://indestructables.codeberg.page" } }, "targets": [ @@ -1010,7 +1015,7 @@ "options": { "enabled": false, "unsupportedUrls": "bypass", - "frontend": "indestructables", + "frontend": "structables", "redirectOnlyInIncognito": false }, "imageType": "svg", -- cgit 1.4.1