« get me outta code hell

fancify & iconify Newgrounds links - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-02-04 21:54:19 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-02-04 21:54:19 -0400
commitf0af4edfa87e9518703b7c9ab35244911f0a3ac2 (patch)
treee9357c1009d7c0dfbac05036c183dabaf3b14aad /src/misc-templates.js
parent672202d207e5366a939ee1f71019a692131f760e (diff)
fancify & iconify Newgrounds links
Fixes #105
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index a530a3c..0e177e0 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',