diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 2f6ceea3..a7e5c8ec 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -103,9 +103,14 @@ class PreviewBar { categoryTooltip.classList.add("sbHidden"); }); - const observer = new MutationObserver(() => { + const observer = new MutationObserver((mutations, observer) => { if (!mouseOnSeekBar) return; + // See if mutation observed is only this ID (if so, ignore) + if (mutations.length == 1 && (mutations[0].target as HTMLElement).id === "sponsor-block-category-tooltip") { + return; + } + let tooltips = document.querySelectorAll(".ytp-tooltip-text"); for (const tooltip of tooltips) { let splitData = tooltip.textContent.split(":");