From c58e21df768e52411c3c7b739b01eddf3ae7ef51 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Mar 2024 12:59:47 -0300 Subject: external-links: HSMusic (replacing "local") --- src/strings-default.yaml | 6 ++++-- src/util/external-links.js | 23 +++++++++++++++++------ 2 files changed, 21 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 5f3b115c..3c38f2f8 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -504,8 +504,6 @@ misc: withHandle: "{PLATFORM} ({HANDLE})" - local: "Wiki Archive (local upload)" - appleMusic: "Apple Music" artstation: "ArtStation" bandcamp: "Bandcamp" @@ -538,6 +536,10 @@ misc: page: "Homestuck (page {PAGE})" secretPage: "Homestuck (secret page)" + hsmusic: + _: "HSMusic" + archive: "HSMusic (wiki archive)" + instagram: "Instagram" internetArchive: "Internet Archive" itch: "itch.io" diff --git a/src/util/external-links.js b/src/util/external-links.js index da0889a3..b8b97849 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -376,6 +376,23 @@ export const externalLinkSpec = [ icon: 'globe', }, + { + match: { + domain: 'hsmusic.wiki', + pathname: /^media\/misc\/archive/, + }, + + platform: 'hsmusic.archive', + + icon: 'globe', + }, + + { + match: {domain: 'hsmusic.wiki'}, + platform: 'hsmusic', + icon: 'globe', + }, + { match: {domain: 'instagram.com'}, platform: 'instagram', @@ -416,12 +433,6 @@ export const externalLinkSpec = [ icon: 'kofi', }, - { - match: {domain: 'hsmusic.wiki'}, - platform: 'local', - icon: 'globe', - }, - { match: {domains: ['types.pl']}, -- cgit 1.3.0-6-gf8a5