diff options
author | Ajay <[email protected]> | 2022-09-24 22:29:07 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-09-24 22:29:07 -0400 |
commit | da35e889f2d4d14395f0d4e2e857bd66f7e1a98a (patch) | |
tree | d67a560534680e11a744be41bd52086628576a8a /src/js-components/previewBar.ts | |
parent | bb8975e93ae45a9c2e1e893b2f681d6295b8257a (diff) | |
download | SponsorBlock-da35e889f2d4d14395f0d4e2e857bd66f7e1a98a.tar.gz SponsorBlock-da35e889f2d4d14395f0d4e2e857bd66f7e1a98a.zip |
Add option to disable segment names beside timestamp in video player
Diffstat (limited to 'src/js-components/previewBar.ts')
-rw-r--r-- | src/js-components/previewBar.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 922b6b2a..05428e54 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -717,7 +717,8 @@ class PreviewBar { } updateChapterText(segments: SponsorTime[], submittingSegments: SponsorTime[], currentTime: number): void { - if ((!segments || segments.length <= 0) && submittingSegments?.length <= 0) { + if (!Config.config.showSegmentNameInChapterBar + || ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) { const chaptersContainer = this.getChaptersContainer(); const chapterButton = this.getChapterButton(chaptersContainer); if (chapterButton.classList.contains("ytp-chapter-container-disabled")) { |