Update maze utils to improve performance on Invidious, and fix preview bar error

thanks @raphj
This commit is contained in:
Ajay
2023-08-11 12:08:19 -04:00
parent e3f3ed20e6
commit 160924feee
2 changed files with 8 additions and 6 deletions

View File

@@ -784,11 +784,13 @@ class PreviewBar {
if (!Config.config.showSegmentNameInChapterBar
|| ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) {
const chaptersContainer = this.getChaptersContainer();
if (chaptersContainer) {
chaptersContainer.querySelector(".sponsorChapterText")?.remove();
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
chapterTitle.style.removeProperty("display");
chaptersContainer.classList.remove("sponsorblock-chapter-visible");
}
return [];
}