diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts index 8e42c55d..fbdeed14 100644 --- a/src/js-components/skipButtonControlBar.ts +++ b/src/js-components/skipButtonControlBar.ts @@ -77,7 +77,8 @@ export class SkipButtonControlBar { this.chapterText?.classList?.add("hidden"); this.container.classList.remove("hidden"); this.textContainer?.classList?.remove("hidden"); - this.textContainer.innerText = getSkippingText([this.segment], false) + (this.showKeybindHint ? " (" + Config.config.skipKeybind + ")" : ""); + this.textContainer.innerText = this.getTitle(); + this.skipIcon.setAttribute("title", this.getTitle()); } } @@ -123,6 +124,10 @@ export class SkipButtonControlBar { utils.enableAutoHideAnimation(this.skipIcon); } + private getTitle(): string { + return getSkippingText([this.segment], false) + (this.showKeybindHint ? " (" + Config.config.skipKeybind + ")" : ""); + } + private getChapterPrefix(): HTMLElement { return document.querySelector(".ytp-chapter-title-prefix"); }