From a945dbfbe48dadf0a31aa8c633fa8fcf7c8bcbda Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 13 Jan 2024 22:18:09 -0400 Subject: content: transformContent: never show tooltips --- src/content/dependencies/transformContent.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index ddf82391..760b509a 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -432,6 +432,19 @@ export default { link.setSlot('preferShortName', slots.preferShortLinkNames); } + // TODO: The same, the same. + let hasTooltipStyleSlot; + try { + link.getSlotDescription('tooltipStyle'); + hasTooltipStyleSlot = true; + } catch (error) { + hasTooltipStyleSlot = false; + } + + if (hasTooltipStyleSlot) { + link.setSlot('tooltipStyle', 'none'); + } + return {type: 'link', data: link}; } -- cgit 1.3.0-6-gf8a5