diff --git a/src/javascript/enhancements/anilyr.js b/src/javascript/enhancements/anilyr.js index 76db373..dc6ecbf 100644 --- a/src/javascript/enhancements/anilyr.js +++ b/src/javascript/enhancements/anilyr.js @@ -14,7 +14,10 @@ export function init() { function observeScreenshotTooltip(tooltip) { let observer = new MutationObserver(mutations => { mutations.forEach(mutation => { - + // Switched to invisible + if(!mutation.oldValue.includes('display: none') && mutation.target.style.display == 'none') { + console.log('SCREENSHOT TOOLTIP CLOSED'); + } }); });