From e3c91e682c3ce246f0628a4f4786c50d9066fc4d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Mar 2024 12:31:04 -0300 Subject: external-links: Facebook --- src/static/icons.svg | 1 + src/strings-default.yaml | 1 + src/util/external-links.js | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) (limited to 'src') diff --git a/src/static/icons.svg b/src/static/icons.svg index a2836a46..0a80a917 100644 --- a/src/static/icons.svg +++ b/src/static/icons.svg @@ -10,6 +10,7 @@ + diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 2f0098f4..22484288 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -522,6 +522,7 @@ misc: music: "MUSIC@DCRC" deviantart: "DeviantArt" + facebook: "Facebook" fandom: _: "Fandom" diff --git a/src/util/external-links.js b/src/util/external-links.js index e59cd318..4d77eb73 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -307,6 +307,30 @@ export const externalLinkSpec = [ icon: 'deviantart', }, + { + match: {domain: 'facebook.com'}, + + platform: 'facebook', + handle: {pathname: /^([^/]+)\/?$/}, + + icon: 'facebook', + }, + + { + match: {domain: 'facebook.com'}, + + platform: 'facebook', + handle: {pathname: /^(?:pages|people)\/([^/]+)\/[0-9]+\/?$/}, + + icon: 'facebook', + }, + + { + match: {domain: 'facebook.com'}, + platform: 'facebook', + icon: 'facebook', + }, + { match: {domain: 'mspaintadventures.fandom.com'}, -- cgit 1.3.0-6-gf8a5