Skip to content

Commit ff2cec6

Browse files
committed
adjust skip to highlight button behavior to attempt to fix issues
1 parent 1775835 commit ff2cec6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/content.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,12 @@ function resetValues() {
383383
// Reset advert playing flag
384384
isAdPlaying = false;
385385

386+
skipButtonControlBar?.disable();
387+
categoryPill?.setVisibility(false);
388+
386389
for (let i = 0; i < skipNotices.length; i++) {
387390
skipNotices.pop()?.close();
388391
}
389-
390-
skipButtonControlBar?.disable();
391-
categoryPill?.setVisibility(false);
392392
}
393393

394394
async function videoIDChange(id: string): Promise<void> {

src/js-components/skipButtonControlBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export class SkipButtonControlBar {
102102
this.enabled = true;
103103

104104
this.refreshText();
105+
this.container?.classList?.remove("textDisabled");
105106
this.textContainer?.classList?.remove("hidden");
106107
AnimationUtils.disableAutoHideAnimation(this.skipIcon);
107108

@@ -134,7 +135,6 @@ export class SkipButtonControlBar {
134135

135136
disable(): void {
136137
this.container.classList.add("hidden");
137-
this.textContainer?.classList?.remove("hidden");
138138

139139
this.chapterText?.classList?.remove("hidden");
140140
this.getChapterPrefix()?.classList?.remove("hidden");

0 commit comments

Comments
 (0)