Use case or problem
In cases where we want to show our own tooltip based on the aria-label, and don’t want the default Obsidian tooltip to also be shown.
Proposed solution
The tooltip that appears in the DOM tree seems to get the label text from the aria-label attribute of the target element, so checking for a secondary attribute in the element or its ancestor will suffice. Something like:
if(element.closest('[data-show-obsidian-tooltips=false]')) {
// Do not show tooltip
}
Current workaround
Using the plugin obsidian-hider, but it will require manual install of the plugin for every user.