« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/strings-default.yaml2
-rw-r--r--src/util/external-links.js6
-rw-r--r--tap-snapshots/test/snapshot/linkExternal.js.test.cjs4
-rw-r--r--test/snapshot/linkExternal.js4
4 files changed, 16 insertions, 0 deletions
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 22484288..5f3b115c 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -531,6 +531,8 @@ misc:
         _: "MSPA Wiki"
         page: "MSPA Wiki ({PAGE})"
 
+    gamebanana: "GameBanana"
+
     homestuck:
       _: "Homestuck"
       page: "Homestuck (page {PAGE})"
diff --git a/src/util/external-links.js b/src/util/external-links.js
index 4d77eb73..da0889a3 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -365,6 +365,12 @@ export const externalLinkSpec = [
   },
 
   {
+    match: {domain: 'gamebanana.com'},
+    platform: 'gamebanana',
+    icon: 'globe',
+  },
+
+  {
     match: {domain: 'homestuck.com'},
     platform: 'homestuck',
     icon: 'globe',
diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
index c53d1586..b09aff61 100644
--- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
+++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
@@ -95,6 +95,8 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://community.fandom.com/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">Fandom</a>
+<a href="https://gamebanana.com/members/2028092" class="nowrap">GameBanana</a>
+<a href="https://gamebanana.com/mods/459476" class="nowrap">GameBanana</a>
 <a href="https://homestuck.com/" class="nowrap">Homestuck</a>
 <a href="https://archive.org/details/a-life-well-lived" class="nowrap">Internet Archive</a>
 <a href="https://archive.org/details/VastError_Volume1/11+Renaissance.mp3" class="nowrap">Internet Archive</a>
@@ -162,6 +164,8 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://community.fandom.com/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">Fandom</a>
+<a href="https://gamebanana.com/members/2028092" class="nowrap">GameBanana</a>
+<a href="https://gamebanana.com/mods/459476" class="nowrap">GameBanana</a>
 <a href="https://homestuck.com/" class="nowrap">Homestuck</a>
 <a href="https://archive.org/details/a-life-well-lived" class="nowrap">Internet Archive</a>
 <a href="https://archive.org/details/VastError_Volume1/11+Renaissance.mp3" class="nowrap">Internet Archive</a>
diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js
index 39135a30..18885d14 100644
--- a/test/snapshot/linkExternal.js
+++ b/test/snapshot/linkExternal.js
@@ -87,6 +87,10 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => {
     'https://community.fandom.com/wiki/',
     'https://community.fandom.com/wiki/Community_Central',
 
+    // platform: gamebanana
+    'https://gamebanana.com/members/2028092',
+    'https://gamebanana.com/mods/459476',
+
     // platform: homestuck
     'https://homestuck.com/',