mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
Hide custom chapter bar while generating
This commit is contained in:
@@ -318,7 +318,8 @@ class PreviewBar {
|
|||||||
this.customChaptersBar = this.originalChapterBar.cloneNode(true) as HTMLElement;
|
this.customChaptersBar = this.originalChapterBar.cloneNode(true) as HTMLElement;
|
||||||
this.customChaptersBar.classList.add("sponsorBlockChapterBar");
|
this.customChaptersBar.classList.add("sponsorBlockChapterBar");
|
||||||
}
|
}
|
||||||
this.customChaptersBar.style.removeProperty("display");
|
|
||||||
|
this.customChaptersBar.style.display = "none";
|
||||||
const originalSections = this.customChaptersBar.querySelectorAll(".ytp-chapter-hover-container");
|
const originalSections = this.customChaptersBar.querySelectorAll(".ytp-chapter-hover-container");
|
||||||
const originalSection = originalSections[0];
|
const originalSection = originalSections[0];
|
||||||
|
|
||||||
@@ -345,6 +346,7 @@ class PreviewBar {
|
|||||||
|
|
||||||
// Hide old bar
|
// Hide old bar
|
||||||
this.originalChapterBar.style.display = "none";
|
this.originalChapterBar.style.display = "none";
|
||||||
|
this.customChaptersBar.style.removeProperty("display");
|
||||||
|
|
||||||
if (createFromScratch) {
|
if (createFromScratch) {
|
||||||
if (this.container?.parentElement === this.progressBar) {
|
if (this.container?.parentElement === this.progressBar) {
|
||||||
|
|||||||
Reference in New Issue
Block a user