mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Update maze utils to improve performance on Invidious, and fix preview bar error
thanks @raphj
This commit is contained in:
parent
e3f3ed20e6
commit
160924feee
2 changed files with 8 additions and 6 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 66fa2dc6249167f2b827b0fd96623f9f15ff3ce1
|
||||
Subproject commit d23dbf3add5c6b64b837da4bc01672a6ee75fb40
|
|
@ -784,11 +784,13 @@ class PreviewBar {
|
|||
if (!Config.config.showSegmentNameInChapterBar
|
||||
|| ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) {
|
||||
const chaptersContainer = this.getChaptersContainer();
|
||||
chaptersContainer.querySelector(".sponsorChapterText")?.remove();
|
||||
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
|
||||
|
||||
chapterTitle.style.removeProperty("display");
|
||||
chaptersContainer.classList.remove("sponsorblock-chapter-visible");
|
||||
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 [];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue