From f0af4edfa87e9518703b7c9ab35244911f0a3ac2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 4 Feb 2023 21:54:19 -0400 Subject: fancify & iconify Newgrounds links Fixes #105 --- src/misc-templates.js | 4 ++++ src/static/icons.svg | 2 ++ src/strings-default.json | 1 + 3 files changed, 7 insertions(+) diff --git a/src/misc-templates.js b/src/misc-templates.js index a530a3cf..0e177e0f 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -497,6 +497,8 @@ function unbound_fancifyURL(url, { ? language.$('misc.external.patreon') : domain.includes('spotify.com') ? language.$('misc.external.spotify') + : domain.includes('newgrounds.com') + ? language.$('misc.external.newgrounds') : domain); } @@ -548,6 +550,8 @@ function unbound_iconifyURL(url, { ? ['deviantart', language.$('misc.external.deviantart')] : domain.includes('instagram.com') ? ['instagram', language.$('misc.external.bandcamp')] + : domain.includes('newgrounds.com') + ? ['newgrounds', language.$('misc.external.newgrounds')] : ['globe', language.$('misc.external.domain', {domain})]); return html.tag('a', diff --git a/src/static/icons.svg b/src/static/icons.svg index 1e4351bf..fa7bb264 100644 --- a/src/static/icons.svg +++ b/src/static/icons.svg @@ -1,5 +1,7 @@ + + diff --git a/src/strings-default.json b/src/strings-default.json index f9c1db8b..e5da1fab 100644 --- a/src/strings-default.json +++ b/src/strings-default.json @@ -154,6 +154,7 @@ "misc.external.instagram": "Instagram", "misc.external.mastodon": "Mastodon", "misc.external.mastodon.domain": "Mastodon ({DOMAIN})", + "misc.external.newgrounds": "Newgrounds", "misc.external.patreon": "Patreon", "misc.external.poetryFoundation": "Poetry Foundation", "misc.external.soundcloud": "SoundCloud", -- cgit 1.3.0-6-gf8a5