« get me outta code hell

external-links: Facebook - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-30 12:31:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-30 12:31:04 -0300
commite3c91e682c3ce246f0628a4f4786c50d9066fc4d (patch)
tree5c4fa62c706d5ca6e346f6490deb0ec54b0a35e9 /src/util
parentde5a8fc983f9c4921d8b1c56915ad301ff755532 (diff)
external-links: Facebook
Diffstat (limited to 'src/util')
-rw-r--r--src/util/external-links.js24
1 files changed, 24 insertions, 0 deletions
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
@@ -308,6 +308,30 @@ export const externalLinkSpec = [
   },
 
   {
+    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'},
 
     platform: 'fandom.mspaintadventures',