mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-17 21:18:56 +03:00
Fix chapter text sometimes being hidden
This commit is contained in:
@@ -950,7 +950,7 @@ class PreviewBar {
|
||||
chapterButton.disabled = false;
|
||||
}
|
||||
|
||||
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
|
||||
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content:not(.sponsorChapterText)") as HTMLDivElement;
|
||||
chapterTitle.style.display = "none";
|
||||
|
||||
const chapterCustomText = (chapterTitle.parentElement.querySelector(".sponsorChapterText") || (() => {
|
||||
|
||||
Reference in New Issue
Block a user