From b8766c413ea2c039a259f9881c8c566961b75d7f Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Wed, 8 Nov 2023 19:55:49 +0300 Subject: Added Twineo https://codeberg.org/LibRedirect/browser_extension/issues/103 --- src/config.json | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/config.json') diff --git a/src/config.json b/src/config.json index 0f799adc..4c535371 100644 --- a/src/config.json +++ b/src/config.json @@ -183,6 +183,13 @@ "instanceList": true, "url": "https://codeberg.org/dragongoose/safetwitch", "localhost": false + }, + "twineo": { + "name": "Twineo", + "embeddable": true, + "instanceList": true, + "url": "https://codeberg.org/CloudyyUw/twineo", + "localhost": false } }, "targets": [ -- cgit 1.4.1 From b146ce07149c1920a273f85c23c8138632f89a8a Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 11 Nov 2023 17:02:42 +0100 Subject: Add TekstoLibre, frontend for Tekstowo.pl --- src/assets/javascripts/services.js | 7 +++++++ src/assets/javascripts/utils.js | 2 ++ src/config.json | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+) (limited to 'src/config.json') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 1a1afa14..6da057fb 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -539,6 +539,9 @@ function redirect(url, type, initiator, forceRedirection) { } return `${randomInstance}${url.pathname}${url.search}` } + case "tekstoLibre": { + return `${randomInstance}/?${url.pathname.slice(1)}`; + } default: { return `${randomInstance}${url.pathname}${url.search}` } @@ -641,6 +644,9 @@ async function reverse(url) { } return } + case "tekstowo": { + return `${config.services[service].url}/${url.search.slice(1)}` + } default: return } @@ -694,6 +700,7 @@ const defaultInstances = { 'proxigram': ['https://proxigram.privacyfrontends.repl.co'], 'tuboYoutube': ['https://tubo.migalmoreno.com'], 'tuboSoundcloud': ['https://tubo.migalmoreno.com'], + 'tekstoLibre': ['https://davilarek.github.io/TekstoLibre'], } function initDefaults() { diff --git a/src/assets/javascripts/utils.js b/src/assets/javascripts/utils.js index e85b1115..6a420ee8 100644 --- a/src/assets/javascripts/utils.js +++ b/src/assets/javascripts/utils.js @@ -10,6 +10,8 @@ function camelCase(str) { function protocolHost(url) { if (url.username && url.password) return `${url.protocol}//${url.username}:${url.password}@${url.host}` + if (url.pathname == "/TekstoLibre/" && url.host.endsWith("github.io")) // workaround + return `${url.protocol}//${url.host}${url.pathname.slice(0, -1)}` return `${url.protocol}//${url.host}` } diff --git a/src/config.json b/src/config.json index 4c535371..2251cf2f 100644 --- a/src/config.json +++ b/src/config.json @@ -943,6 +943,26 @@ }, "imageType": "svg", "url": "https://www.wolframalpha.com" + }, + "tekstowo": { + "frontends": { + "tekstoLibre": { + "name": "TekstoLibre", + "instanceList": true, + "url": "https://github.com/Davilarek/TekstoLibre" + } + }, + "targets": [ + "^https?:\\/{2}(www\\.)?tekstowo\\.pl\\/" + ], + "name": "Tekstowo.pl", + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "frontend": "tekstoLibre" + }, + "imageType": "png", + "url": "https://www.tekstowo.pl" } } } \ No newline at end of file -- cgit 1.4.1 From 3bb51d84e7e0ea144a8086b63e373720d6b761c9 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sun, 19 Nov 2023 03:29:30 +0300 Subject: Updated Tekstowo icon --- src/assets/images/tekstowo-icon.svg | 12 ++++++------ src/config.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/config.json') diff --git a/src/assets/images/tekstowo-icon.svg b/src/assets/images/tekstowo-icon.svg index 90c3f4fd..c5bc024d 100644 --- a/src/assets/images/tekstowo-icon.svg +++ b/src/assets/images/tekstowo-icon.svg @@ -3,7 +3,7 @@ viewBox="0 0 100 100" version="1.1" id="svg12" - sodipodi:docname="icon.svg" + sodipodi:docname="tekstowo-icon.svg" width="100" height="100" inkscape:version="1.3 (0e150ed6c4, 2023-07-21)" @@ -24,7 +24,7 @@ inkscape:deskcolor="#d1d1d1" inkscape:zoom="3.3499322" inkscape:cx="35.821621" - inkscape:cy="41.045607" + inkscape:cy="41.34412" inkscape:window-width="1888" inkscape:window-height="1060" inkscape:window-x="32" @@ -68,10 +68,10 @@ id="stop8" /> + style="fill:#8fe132;fill-opacity:1;stroke-width:0.999999" /> + style="fill:#8fe132;fill-opacity:1;stroke-width:0.999999" /> Date: Fri, 24 Nov 2023 21:22:43 +0300 Subject: Added Skyview https://github.com/libredirect/browser_extension/issues/834 --- src/assets/images/bluesky-icon.svg | 63 ++++++++++++++++++++++++++++++++++++++ src/assets/javascripts/services.js | 9 ++++++ src/config.json | 30 ++++++++++++++++++ src/pages/stylesheets/styles.css | 2 +- 4 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 src/assets/images/bluesky-icon.svg (limited to 'src/config.json') diff --git a/src/assets/images/bluesky-icon.svg b/src/assets/images/bluesky-icon.svg new file mode 100644 index 00000000..8e916784 --- /dev/null +++ b/src/assets/images/bluesky-icon.svg @@ -0,0 +1,63 @@ + + + + diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index dbbe7c9f..ac87cb67 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -166,6 +166,10 @@ function redirect(url, type, initiator, forceRedirection) { case "freetube": { return 'freetube://' + url.href } + case "freetubePwa": { + return 'freetube://' + url.href + } + case "poketube": { if (url.pathname.startsWith('/channel')) { const reg = /\/channel\/(.*)\/?$/.exec(url.pathname) @@ -561,6 +565,10 @@ function redirect(url, type, initiator, forceRedirection) { case "tekstoLibre": { return `${randomInstance}/?${url.pathname.slice(1)}`; } + case "skyview": { + if (url.pathname == '/') return randomInstance + return `${randomInstance}?url=${encodeURIComponent(url.href)}` + } default: { return `${randomInstance}${url.pathname}${url.search}` } @@ -731,6 +739,7 @@ const defaultInstances = { 'tuboYoutube': ['https://tubo.migalmoreno.com'], 'tuboSoundcloud': ['https://tubo.migalmoreno.com'], 'tekstoLibre': ['https://davilarek.github.io/TekstoLibre'], + 'skyview': ['https://skyview.social'], } function initDefaults() { diff --git a/src/config.json b/src/config.json index 6cc43776..f17ba8f5 100644 --- a/src/config.json +++ b/src/config.json @@ -97,6 +97,16 @@ "desktopApp": true, "instanceList": false, "url": "https://github.com/yattee/yattee" + }, + "freetubePwa": { + "excludeTargets": [ + 2, + 3 + ], + "name": "FreeTube PWA", + "embeddable": false, + "instanceList": false, + "url": "https://github.com/MarmadileManteater/FreeTubeCordova" } }, "targets": [ @@ -963,6 +973,26 @@ }, "imageType": "svg", "url": "https://www.tekstowo.pl" + }, + "bluesky": { + "frontends": { + "skyview": { + "name": "Skyview", + "instanceList": true, + "url": "https://github.com/badlogic/skyview" + } + }, + "targets": [ + "^https?:\\/{2}bsky\\.app\\/" + ], + "name": "Bluesky", + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "frontend": "skyview" + }, + "imageType": "svg", + "url": "https://bsky.app/" } } } \ No newline at end of file diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css index 225023ec..2519a05f 100644 --- a/src/pages/stylesheets/styles.css +++ b/src/pages/stylesheets/styles.css @@ -131,7 +131,7 @@ section.links { flex-wrap: wrap; flex-direction: column; width: 350px; - max-height: 890px; + max-height: 930px; } section.links div { -- cgit 1.4.1 From 51ffdebd1250323d3c06058af14f3812dd188cdf Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Fri, 8 Dec 2023 22:49:02 +0300 Subject: Added superuser.com to AnonymousOverflow https://github.com/libredirect/browser_extension/issues/868 --- package.json | 2 +- src/config.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/config.json') diff --git a/package.json b/package.json index 139d4773..d388da1f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ }, "scripts": { "start": "web-ext run", - "start_ar": "web-ext run --firefox=/home/esmail/Downloads/ar/firefox/firefox --pref font.language.group=ar", + "start-nightly": "web-ext run --firefox=/home/manerakai/Downloads/firefox/firefox", "build": "web-ext build", "test": "web-ext lint", "html": "pug --basedir ./ --obj ./src/config.json src/pages/options/index.pug --out src/pages/options/ && pug --basedir ./ --obj ./src/config.json src/pages/popup/popup.pug --out src/pages/popup/" diff --git a/src/config.json b/src/config.json index f17ba8f5..52358170 100644 --- a/src/config.json +++ b/src/config.json @@ -710,7 +710,8 @@ }, "targets": [ "^https?:\\/{2}(www\\.)?stackoverflow\\.com\\/", - "^https?:\\/{2}([a-zA-Z0-9-]+\\.)?stackexchange\\.com\\/" + "^https?:\\/{2}([a-zA-Z0-9-]+\\.)?stackexchange\\.com\\/", + "^https?:\\/{2}(www\\.)?superuser\\.com\\/" ], "name": "Stack Overflow", "options": { -- cgit 1.4.1