mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-18 05:28:32 +03:00
Add option to disable thumbnail icons
This commit is contained in:
@@ -27,6 +27,7 @@ interface SBConfig {
|
||||
disableSkipping: boolean;
|
||||
muteSegments: boolean;
|
||||
fullVideoSegments: boolean;
|
||||
fullVideoLabelsOnThumbnails: boolean;
|
||||
manualSkipOnFullVideo: boolean;
|
||||
trackViewCount: boolean;
|
||||
trackViewCountInPrivate: boolean;
|
||||
@@ -258,6 +259,7 @@ const syncDefaults = {
|
||||
disableSkipping: false,
|
||||
muteSegments: true,
|
||||
fullVideoSegments: true,
|
||||
fullVideoLabelsOnThumbnails: true,
|
||||
manualSkipOnFullVideo: false,
|
||||
trackViewCount: true,
|
||||
trackViewCountInPrivate: true,
|
||||
|
||||
@@ -345,6 +345,7 @@ function contentConfigUpdateListener(changes: StorageChangesObject) {
|
||||
setCategoryColorCSSVariables();
|
||||
break;
|
||||
case "fullVideoSegments":
|
||||
case "fullVideoLabelsOnThumbnails":
|
||||
updateAll();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function labelThumbnails(thumbnails: HTMLImageElement[]): Promise<v
|
||||
}
|
||||
|
||||
export async function labelThumbnail(thumbnail: HTMLImageElement): Promise<HTMLElement | null> {
|
||||
if (!Config.config?.fullVideoSegments) {
|
||||
if (!Config.config?.fullVideoSegments || !Config.config?.fullVideoLabelsOnThumbnails) {
|
||||
hideThumbnailLabel(thumbnail);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user