diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-30 13:18:55 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-03-30 13:19:53 -0300 |
commit | 8434168a8481d1c09f216b83a173b6ad3209bff1 (patch) | |
tree | 66eb2495006b25977ebdd36700e6a0add61a7c00 | |
parent | 30cfee2caaeaaf78da9c11618f67bed5afb98368 (diff) |
external-links: MSPFA
-rw-r--r-- | src/strings-default.yaml | 1 | ||||
-rw-r--r-- | src/util/external-links.js | 6 | ||||
-rw-r--r-- | tap-snapshots/test/snapshot/linkExternal.js.test.cjs | 6 | ||||
-rw-r--r-- | test/snapshot/linkExternal.js | 5 |
4 files changed, 18 insertions, 0 deletions
diff --git a/src/strings-default.yaml b/src/strings-default.yaml index be747f8f..27af2797 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -546,6 +546,7 @@ misc: kofi: "Ko-fi" linktree: "Linktree" mastodon: "Mastodon" + mspfa: "MSPFA" neocities: "Neocities" newgrounds: "Newgrounds" patreon: "Patreon" diff --git a/src/util/external-links.js b/src/util/external-links.js index 52309d90..6f8e108b 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -462,6 +462,12 @@ export const externalLinkSpec = [ }, { + match: {domains: ['mspfa.com', '.mspfa.com']}, + platform: 'mspfa', + icon: 'globe', + }, + + { match: {domain: '.neocities.org'}, platform: 'neocities', diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs index a4189f77..55031c66 100644 --- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs @@ -109,6 +109,9 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context <a href="https://ko-fi.com/gnaach" class="nowrap">gnaach</a> <a href="https://linktr.ee/bbpanzu" class="nowrap">bbpanzu</a> <a href="https://types.pl/" class="nowrap">types.pl</a> +<a href="https://canwc.mspfa.com/" class="nowrap">MSPFA</a> +<a href="https://mspfa.com/?s=12003&p=1045" class="nowrap">MSPFA</a> +<a href="https://mspfa.com/user/?u=103334508819793669241" class="nowrap">MSPFA</a> <a href="https://wodaro.neocities.org" class="nowrap">wodaro.neocities.org</a> <a href="https://neomints.neocities.org/" class="nowrap">neomints.neocities.org</a> <a href="https://buzinkai.newgrounds.com/" class="nowrap">buzinkai</a> @@ -180,6 +183,9 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context <a href="https://ko-fi.com/gnaach" class="nowrap">Ko-fi</a> <a href="https://linktr.ee/bbpanzu" class="nowrap">Linktree</a> <a href="https://types.pl/" class="nowrap">Mastodon (types.pl)</a> +<a href="https://canwc.mspfa.com/" class="nowrap">MSPFA</a> +<a href="https://mspfa.com/?s=12003&p=1045" class="nowrap">MSPFA</a> +<a href="https://mspfa.com/user/?u=103334508819793669241" class="nowrap">MSPFA</a> <a href="https://wodaro.neocities.org" class="nowrap">Neocities</a> <a href="https://neomints.neocities.org/" class="nowrap">Neocities</a> <a href="https://buzinkai.newgrounds.com/" class="nowrap">Newgrounds</a> diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js index 3d759ff1..18f32907 100644 --- a/test/snapshot/linkExternal.js +++ b/test/snapshot/linkExternal.js @@ -121,6 +121,11 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => { // platform: mastodon 'https://types.pl/', + // platform: mspfa + 'https://canwc.mspfa.com/', + 'https://mspfa.com/?s=12003&p=1045', + 'https://mspfa.com/user/?u=103334508819793669241', + // platform: neocities 'https://wodaro.neocities.org', 'https://neomints.neocities.org/', |