« get me outta code hell

content: linkExternal: disableBrowserTooltip slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-24 20:40:50 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-24 20:40:50 -0300
commit1d1e9f8eb84e8a1931a255e6022edf7865162ce2 (patch)
tree99bd4128daaf57eeb31f491d8074a45b8f3408f6 /src
parentee86dc8b67c81a4dc5c115efc8f9761698da7291 (diff)
content: linkExternal: disableBrowserTooltip slot
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/linkExternal.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/content/dependencies/linkExternal.js b/src/content/dependencies/linkExternal.js
index 073c821e..c132baaf 100644
--- a/src/content/dependencies/linkExternal.js
+++ b/src/content/dependencies/linkExternal.js
@@ -39,6 +39,11 @@ export default {
       default: false,
     },
 
+    disableBrowserTooltip: {
+      type: 'boolean',
+      default: false,
+    },
+
     tab: {
       validate: v => v.is('default', 'separate'),
       default: 'default',
@@ -111,7 +116,9 @@ export default {
       linkAttributes.add('class', 'indicate-external');
 
       let titleText;
-      if (slots.tab === 'separate') {
+      if (slots.disableBrowserTooltip) {
+        titleText = null;
+      } else if (slots.tab === 'separate') {
         if (html.isBlank(slots.content)) {
           titleText =
             language.$('misc.external.opensInNewTab.annotation');