diff --git a/src/assets/images/twitch-icon.svg b/src/assets/images/twitch-icon.svg new file mode 100644 index 00000000..81639cfc --- /dev/null +++ b/src/assets/images/twitch-icon.svg @@ -0,0 +1,12 @@ + + + + logo / glitch / purple + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index a181cccf..2e166d6f 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -713,7 +713,8 @@ const defaultInstances = { 'pixivFe': ['https://pixivfe.exozy.me'], 'indestructables': ['https://indestructables.private.coffee'], 'destructables': ['https://ds.vern.cc'], - 'wtfismyip': ['https://myip.wtf'] + 'wtfismyip': ['https://myip.wtf'], + 'safetwitch': ['https://safetwitch.drgns.space'] } function initDefaults() { diff --git a/src/config.json b/src/config.json index 31da4b0b..914b5ab0 100644 --- a/src/config.json +++ b/src/config.json @@ -154,6 +154,31 @@ "embeddable": true, "url": "https://twitter.com" }, + "twitch": { + "frontends": { + "safetwitch": { + "name": "SafeTwitch", + "embeddable": false, + "instanceList": true, + "url": "https://codeberg.org/dragongoose/safetwitch", + "localhost": false + } + }, + "targets": [ + "^https?:\\/{2}(www\\.)?twitch\\.(tv|com)\\/" + ], + "name": "Twitch", + "options": { + "enabled": false, + "redirectType": "main_frame", + "unsupportedUrls": "bypass", + "frontend": "safetwitch", + "instance": "public" + }, + "imageType": "svg", + "embeddable": false, + "url": "https://twitch.tv" + }, "tiktok": { "frontends": { "proxiTok": { diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css index 49e8e54d..836a4007 100644 --- a/src/pages/stylesheets/styles.css +++ b/src/pages/stylesheets/styles.css @@ -128,7 +128,7 @@ section.links { flex-wrap: wrap; flex-direction: column; width: 300px; - max-height: 850px; + max-height: 880px; } section.links div {