mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Fix chapter text rendering
This commit is contained in:
@@ -957,6 +957,7 @@ class PreviewBar {
|
|||||||
const elem = document.createElement("div");
|
const elem = document.createElement("div");
|
||||||
chapterTitle.parentElement.insertBefore(elem, chapterTitle);
|
chapterTitle.parentElement.insertBefore(elem, chapterTitle);
|
||||||
elem.classList.add("sponsorChapterText");
|
elem.classList.add("sponsorChapterText");
|
||||||
|
elem.classList.add("ytp-chapter-title-content");
|
||||||
if (document.location.host === "tv.youtube.com") {
|
if (document.location.host === "tv.youtube.com") {
|
||||||
elem.style.lineHeight = "initial";
|
elem.style.lineHeight = "initial";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user