@@ -8,122 +8,122 @@ export interface Permission {
88}
99
1010interface SBConfig {
11- userID : string ,
12- isVip : boolean ,
13- permissions : Record < Category , Permission > ,
11+ userID : string ;
12+ isVip : boolean ;
13+ permissions : Record < Category , Permission > ;
1414 /* Contains unsubmitted segments that the user has created. */
15- unsubmittedSegments : Record < string , SponsorTime [ ] > ,
16- defaultCategory : Category ,
17- renderSegmentsAsChapters : boolean ,
18- whitelistedChannels : string [ ] ,
19- forceChannelCheck : boolean ,
20- minutesSaved : number ,
21- skipCount : number ,
22- sponsorTimesContributed : number ,
23- submissionCountSinceCategories : number , // New count used to show the "Read The Guidelines!!" message
24- showTimeWithSkips : boolean ,
25- disableSkipping : boolean ,
26- muteSegments : boolean ,
27- fullVideoSegments : boolean ,
28- manualSkipOnFullVideo : boolean ,
29- trackViewCount : boolean ,
30- trackViewCountInPrivate : boolean ,
31- trackDownvotes : boolean ,
32- dontShowNotice : boolean ,
33- noticeVisibilityMode : NoticeVisbilityMode ,
34- hideVideoPlayerControls : boolean ,
35- hideInfoButtonPlayerControls : boolean ,
36- hideDeleteButtonPlayerControls : boolean ,
37- hideUploadButtonPlayerControls : boolean ,
38- hideSkipButtonPlayerControls : boolean ,
39- hideDiscordLaunches : number ,
40- hideDiscordLink : boolean ,
41- invidiousInstances : string [ ] ,
42- supportInvidious : boolean ,
43- serverAddress : string ,
44- minDuration : number ,
45- skipNoticeDuration : number ,
46- audioNotificationOnSkip : boolean ,
47- checkForUnlistedVideos : boolean ,
48- testingServer : boolean ,
49- refetchWhenNotFound : boolean ,
50- ytInfoPermissionGranted : boolean ,
51- allowExpirements : boolean ,
52- showDonationLink : boolean ,
53- showPopupDonationCount : number ,
54- showUpsells : boolean ,
55- donateClicked : number ,
56- autoHideInfoButton : boolean ,
57- autoSkipOnMusicVideos : boolean ,
15+ unsubmittedSegments : Record < string , SponsorTime [ ] > ;
16+ defaultCategory : Category ;
17+ renderSegmentsAsChapters : boolean ;
18+ whitelistedChannels : string [ ] ;
19+ forceChannelCheck : boolean ;
20+ minutesSaved : number ;
21+ skipCount : number ;
22+ sponsorTimesContributed : number ;
23+ submissionCountSinceCategories : number ; // New count used to show the "Read The Guidelines!!" message
24+ showTimeWithSkips : boolean ;
25+ disableSkipping : boolean ;
26+ muteSegments : boolean ;
27+ fullVideoSegments : boolean ;
28+ manualSkipOnFullVideo : boolean ;
29+ trackViewCount : boolean ;
30+ trackViewCountInPrivate : boolean ;
31+ trackDownvotes : boolean ;
32+ dontShowNotice : boolean ;
33+ noticeVisibilityMode : NoticeVisbilityMode ;
34+ hideVideoPlayerControls : boolean ;
35+ hideInfoButtonPlayerControls : boolean ;
36+ hideDeleteButtonPlayerControls : boolean ;
37+ hideUploadButtonPlayerControls : boolean ;
38+ hideSkipButtonPlayerControls : boolean ;
39+ hideDiscordLaunches : number ;
40+ hideDiscordLink : boolean ;
41+ invidiousInstances : string [ ] ;
42+ supportInvidious : boolean ;
43+ serverAddress : string ;
44+ minDuration : number ;
45+ skipNoticeDuration : number ;
46+ audioNotificationOnSkip : boolean ;
47+ checkForUnlistedVideos : boolean ;
48+ testingServer : boolean ;
49+ refetchWhenNotFound : boolean ;
50+ ytInfoPermissionGranted : boolean ;
51+ allowExpirements : boolean ;
52+ showDonationLink : boolean ;
53+ showPopupDonationCount : number ;
54+ showUpsells : boolean ;
55+ donateClicked : number ;
56+ autoHideInfoButton : boolean ;
57+ autoSkipOnMusicVideos : boolean ;
5858 colorPalette : {
59- red : string ,
60- white : string ,
61- locked : string
62- } ,
63- scrollToEditTimeUpdate : boolean ,
64- categoryPillUpdate : boolean ,
65- showChapterInfoMessage : boolean ,
66- darkMode : boolean ,
67- showCategoryGuidelines : boolean ,
68- showCategoryWithoutPermission : boolean ,
69- showSegmentNameInChapterBar : boolean ,
59+ red : string ;
60+ white : string ;
61+ locked : string ;
62+ } ;
63+ scrollToEditTimeUpdate : boolean ;
64+ categoryPillUpdate : boolean ;
65+ showChapterInfoMessage : boolean ;
66+ darkMode : boolean ;
67+ showCategoryGuidelines : boolean ;
68+ showCategoryWithoutPermission : boolean ;
69+ showSegmentNameInChapterBar : boolean ;
7070
7171 // Used to cache calculated text color info
7272 categoryPillColors : {
7373 [ key in Category ] : {
74- lastColor : string ,
75- textColor : string
74+ lastColor : string ;
75+ textColor : string ;
7676 }
77- }
77+ } ;
7878
79- skipKeybind : Keybind ,
80- startSponsorKeybind : Keybind ,
81- submitKeybind : Keybind ,
82- nextChapterKeybind : Keybind ,
83- previousChapterKeybind : Keybind ,
79+ skipKeybind : Keybind ;
80+ startSponsorKeybind : Keybind ;
81+ submitKeybind : Keybind ;
82+ nextChapterKeybind : Keybind ;
83+ previousChapterKeybind : Keybind ;
8484
8585 // What categories should be skipped
86- categorySelections : CategorySelection [ ] ,
86+ categorySelections : CategorySelection [ ] ;
8787
8888 payments : {
89- licenseKey : string ,
90- lastCheck : number ,
91- lastFreeCheck : number ,
92- freeAccess : boolean ,
93- chaptersAllowed : boolean
94- }
89+ licenseKey : string ;
90+ lastCheck : number ;
91+ lastFreeCheck : number ;
92+ freeAccess : boolean ;
93+ chaptersAllowed : boolean ;
94+ } ;
9595
9696 // Preview bar
9797 barTypes : {
98- "preview-chooseACategory" : PreviewBarOption ,
99- "sponsor" : PreviewBarOption ,
100- "preview-sponsor" : PreviewBarOption ,
101- "selfpromo" : PreviewBarOption ,
102- "preview-selfpromo" : PreviewBarOption ,
103- "exclusive_access" : PreviewBarOption ,
104- "interaction" : PreviewBarOption ,
105- "preview-interaction" : PreviewBarOption ,
106- "intro" : PreviewBarOption ,
107- "preview-intro" : PreviewBarOption ,
108- "outro" : PreviewBarOption ,
109- "preview-outro" : PreviewBarOption ,
110- "preview" : PreviewBarOption ,
111- "preview-preview" : PreviewBarOption ,
112- "music_offtopic" : PreviewBarOption ,
113- "preview-music_offtopic" : PreviewBarOption ,
114- "poi_highlight" : PreviewBarOption ,
115- "preview-poi_highlight" : PreviewBarOption ,
116- "filler" : PreviewBarOption ,
117- "preview-filler" : PreviewBarOption ,
118- }
98+ "preview-chooseACategory" : PreviewBarOption ;
99+ "sponsor" : PreviewBarOption ;
100+ "preview-sponsor" : PreviewBarOption ;
101+ "selfpromo" : PreviewBarOption ;
102+ "preview-selfpromo" : PreviewBarOption ;
103+ "exclusive_access" : PreviewBarOption ;
104+ "interaction" : PreviewBarOption ;
105+ "preview-interaction" : PreviewBarOption ;
106+ "intro" : PreviewBarOption ;
107+ "preview-intro" : PreviewBarOption ;
108+ "outro" : PreviewBarOption ;
109+ "preview-outro" : PreviewBarOption ;
110+ "preview" : PreviewBarOption ;
111+ "preview-preview" : PreviewBarOption ;
112+ "music_offtopic" : PreviewBarOption ;
113+ "preview-music_offtopic" : PreviewBarOption ;
114+ "poi_highlight" : PreviewBarOption ;
115+ "preview-poi_highlight" : PreviewBarOption ;
116+ "filler" : PreviewBarOption ;
117+ "preview-filler" : PreviewBarOption ;
118+ } ;
119119}
120120
121- export type VideoDownvotes = { segments : { uuid : HashedValue , hidden : SponsorHideType } [ ] , lastAccess : number } ;
121+ export type VideoDownvotes = { segments : { uuid : HashedValue ; hidden : SponsorHideType } [ ] ; lastAccess : number } ;
122122
123123interface SBStorage {
124124 /* VideoID prefixes to UUID prefixes */
125- downvotedSegments : Record < VideoID & HashedValue , VideoDownvotes > ,
126- navigationApiAvailable : boolean ,
125+ downvotedSegments : Record < VideoID & HashedValue , VideoDownvotes > ;
126+ navigationApiAvailable : boolean ;
127127}
128128
129129export interface SBObject {
@@ -340,7 +340,7 @@ const Config: SBObject = {
340340
341341// Function setup
342342
343- function configProxy ( ) : { sync : SBConfig , local : SBStorage } {
343+ function configProxy ( ) : { sync : SBConfig ; local : SBStorage } {
344344 chrome . storage . onChanged . addListener ( ( changes : { [ key : string ] : chrome . storage . StorageChange } , areaName ) => {
345345 if ( areaName === "sync" ) {
346346 for ( const key in changes ) {
0 commit comments