We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c01946 commit a58bec2Copy full SHA for a58bec2
1 file changed
src/js-components/previewBar.ts
@@ -950,7 +950,7 @@ class PreviewBar {
950
chapterButton.disabled = false;
951
}
952
953
- const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
+ const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content:not(.sponsorChapterText)") as HTMLDivElement;
954
chapterTitle.style.display = "none";
955
956
const chapterCustomText = (chapterTitle.parentElement.querySelector(".sponsorChapterText") || (() => {
0 commit comments