mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
adjust skip to highlight button behavior to attempt to fix issues
This commit is contained in:
@@ -383,12 +383,12 @@ function resetValues() {
|
|||||||
// Reset advert playing flag
|
// Reset advert playing flag
|
||||||
isAdPlaying = false;
|
isAdPlaying = false;
|
||||||
|
|
||||||
|
skipButtonControlBar?.disable();
|
||||||
|
categoryPill?.setVisibility(false);
|
||||||
|
|
||||||
for (let i = 0; i < skipNotices.length; i++) {
|
for (let i = 0; i < skipNotices.length; i++) {
|
||||||
skipNotices.pop()?.close();
|
skipNotices.pop()?.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
skipButtonControlBar?.disable();
|
|
||||||
categoryPill?.setVisibility(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function videoIDChange(id: string): Promise<void> {
|
async function videoIDChange(id: string): Promise<void> {
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ export class SkipButtonControlBar {
|
|||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
|
|
||||||
this.refreshText();
|
this.refreshText();
|
||||||
|
this.container?.classList?.remove("textDisabled");
|
||||||
this.textContainer?.classList?.remove("hidden");
|
this.textContainer?.classList?.remove("hidden");
|
||||||
AnimationUtils.disableAutoHideAnimation(this.skipIcon);
|
AnimationUtils.disableAutoHideAnimation(this.skipIcon);
|
||||||
|
|
||||||
@@ -134,7 +135,6 @@ export class SkipButtonControlBar {
|
|||||||
|
|
||||||
disable(): void {
|
disable(): void {
|
||||||
this.container.classList.add("hidden");
|
this.container.classList.add("hidden");
|
||||||
this.textContainer?.classList?.remove("hidden");
|
|
||||||
|
|
||||||
this.chapterText?.classList?.remove("hidden");
|
this.chapterText?.classList?.remove("hidden");
|
||||||
this.getChapterPrefix()?.classList?.remove("hidden");
|
this.getChapterPrefix()?.classList?.remove("hidden");
|
||||||
|
|||||||
Reference in New Issue
Block a user