-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.d.ts
88 lines (80 loc) · 2.06 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
export type Channel = {
name: string
url?: string
}
export type CustomMutationObserver = MutationObserver & {name: string, onDisconnect?: () => void}
export type Disconnectable = {name: string, disconnect: () => void}
export type EmbedConfig = {
enabled: boolean
hideEmbedEndVideos: boolean
hideEmbedPauseOverlay: boolean
hideEmbedShareButton: boolean
}
export type Locale = {
[key in LocaleKey]?: string
}
export type LocaleKey =
| 'CLIP'
| 'DOWNLOAD'
| 'FOR_YOU'
| 'HIDE_CHANNEL'
| 'MIXES'
| 'MUTE'
| 'NEXT_VIDEO'
| 'OPEN_APP'
| 'PREVIOUS_VIDEO'
| 'SHARE'
| 'SHORTS'
| 'STREAMED_TITLE'
| 'TELL_US_WHY'
| 'THANKS'
| 'UNHIDE_CHANNEL'
export type OptionsConfig = EmbedConfig & SiteConfig
export type SiteConfig = {
debug?: boolean,
debugManualHiding?: boolean,
enabled: boolean
version?: Version
disableAutoplay: boolean
disableHomeFeed: boolean
hiddenChannels: Channel[]
hideChannels: boolean
hideComments: boolean
hideHiddenVideos: boolean
hideHomeCategories: boolean
hideLive: boolean
hideMetadata: boolean
hideMixes: boolean
hideNextButton: boolean
hideRelated: boolean
hideShareThanksClip: boolean
hideShorts: boolean
hideSponsored: boolean
hideStreamed: boolean
hideSuggestedSections: boolean
hideUpcoming: boolean
hideVoiceSearch: boolean
hideWatched: boolean
hideWatchedThreshold: string
redirectShorts: boolean
removePink: boolean
skipAds: boolean
// Desktop only
downloadTranscript: boolean
fullSizeTheaterMode: boolean
hideChat: boolean
hideEndCards: boolean
hideEndVideos: boolean
hideMerchEtc: boolean
hideMiniplayerButton: boolean
hideSubscriptionsLatestBar: boolean
minimumGridItemsPerRow: 'auto' | '3' | '4' | '5' | '6'
searchThumbnailSize: 'large' | 'medium' | 'small'
tidyGuideSidebar: boolean
// Mobile only
hideExploreButton: boolean
hideOpenApp: boolean
hideSubscriptionsChannelList: boolean
mobileGridView: boolean
}
export type Version = 'mobile' | 'desktop'