mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Add class for other extensions when displaying non chapter title
This commit is contained in:
@@ -776,6 +776,11 @@ class PreviewBar {
|
|||||||
|
|
||||||
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
|
const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement;
|
||||||
chapterTitle.innerText = chosenSegment.description || shortCategoryName(chosenSegment.category);
|
chapterTitle.innerText = chosenSegment.description || shortCategoryName(chosenSegment.category);
|
||||||
|
if (chosenSegment.actionType !== ActionType.Chapter) {
|
||||||
|
chapterTitle.classList.add("sponsorBlock-segment-title");
|
||||||
|
} else {
|
||||||
|
chapterTitle.classList.remove("sponsorBlock-segment-title");
|
||||||
|
}
|
||||||
|
|
||||||
if (chosenSegment.source === SponsorSourceType.Server) {
|
if (chosenSegment.source === SponsorSourceType.Server) {
|
||||||
const chapterVoteContainer = this.chapterVote.getContainer();
|
const chapterVoteContainer = this.chapterVote.getContainer();
|
||||||
|
|||||||
Reference in New Issue
Block a user