From d2b859c5d8c3861debe73f72f20d495cdb41bc60 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 25 Jun 2025 02:48:45 -0400 Subject: [PATCH] Remove old chapter rendering logic --- public/content.css | 4 ---- src/js-components/previewBar.ts | 5 ----- 2 files changed, 9 deletions(-) diff --git a/public/content.css b/public/content.css index bff8050b..1630e32c 100644 --- a/public/content.css +++ b/public/content.css @@ -102,10 +102,6 @@ div:hover > #previewbar.sbNotInvidious { display: none !important; } -.ytp-tooltip.sponsorCategoryTooltipVisible:not(.sponsorTooltipHasYTChapters) { - transform: translateY(-1em) !important; -} - /* Pull up for precise seeking */ .ytp-tooltip.sponsorCategoryTooltipVisible .ytp-tooltip-edu { transform: translateY(-1em) !important; diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 903164d6..fd8b741e 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -187,10 +187,6 @@ class PreviewBar { // Hide original tooltip if some chapter has been filtered out originalTooltip.style.display = "none"; noYoutubeChapters = true; - - originalTooltip.classList.add("sponsorTooltipHasYTChapters"); - } else { - originalTooltip.classList.remove("sponsorTooltipHasYTChapters"); } if (mainSegment === null && secondarySegment === null) { @@ -211,7 +207,6 @@ class PreviewBar { const hasTwoTooltips = mainSegment !== null && secondarySegment !== null; if (hasTwoTooltips) { this.categoryTooltipContainer.classList.add("sponsorTwoTooltips"); - originalTooltip.classList.remove("sponsorTooltipHasYTChapters"); } else { this.categoryTooltipContainer.classList.remove("sponsorTwoTooltips"); }