mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Add alt text to skip to highlight
This commit is contained in:
@@ -77,7 +77,8 @@ export class SkipButtonControlBar {
|
|||||||
this.chapterText?.classList?.add("hidden");
|
this.chapterText?.classList?.add("hidden");
|
||||||
this.container.classList.remove("hidden");
|
this.container.classList.remove("hidden");
|
||||||
this.textContainer?.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);
|
utils.enableAutoHideAnimation(this.skipIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private getTitle(): string {
|
||||||
|
return getSkippingText([this.segment], false) + (this.showKeybindHint ? " (" + Config.config.skipKeybind + ")" : "");
|
||||||
|
}
|
||||||
|
|
||||||
private getChapterPrefix(): HTMLElement {
|
private getChapterPrefix(): HTMLElement {
|
||||||
return document.querySelector(".ytp-chapter-title-prefix");
|
return document.querySelector(".ytp-chapter-title-prefix");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user