From 4ed67a3f73a63e6d680be9c1f8eccbe8ff570b4e Mon Sep 17 00:00:00 2001 From: ManeraKai 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') 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