@@ -3,6 +3,7 @@ interface AudioRule {
3
3
_dynamic ?: boolean ; // [Dynamic] Set to true on a dynamic rule
4
4
apfCaptions ?: boolean ; // [Cue] Display an HTML version of the caption/subtitle text: Requires videoCueHideCues = true
5
5
apfCaptionsSelector ?: string ; // [Cue] Selector for container that will hold the custom HTML captions
6
+ apfCuesLabel ?: string ; // [Watcher.toCue] TextTrack label for APF Cues (Default: 'APF-Cues')
6
7
buildTarget ?: string ; // [All] Only allow rule to run on a specific buildTarget
7
8
checkInterval ?: number ; // [Watcher] Set a custom watch interval (in ms, Default: 20)
8
9
className ?: string ; // [Element] node.className.includes()
@@ -13,6 +14,7 @@ interface AudioRule {
13
14
displayElementLevels ?: number ; // [Watcher] Number of levels (ancestors) to get _displayElement
14
15
displayHide ?: string ; // [Element,ElementChild,Watcher] Display style for hiding captions (Default: 'none')
15
16
displaySelector ?: string ; // [Element,ElementChild,Watcher] Alternate selector to hide/show captions
17
+ displaySelectorParents ?: number ; // [Element,ElementChild,Watcher] Number of levels to go above displaySelector's element
16
18
displayShow ?: string ; // [Element,ElementChild,Watcher] Display style for showing captions (Default: '')
17
19
displayVisibility ?: boolean ; // [Watcher*] Use visibility to show/hide caption container
18
20
dynamicClasslist ?: string ; // [Dynamic] Set when a dynamicTextKey is found
@@ -41,6 +43,7 @@ interface AudioRule {
41
43
simpleUnmute ?: boolean ; // [Element,ElementChild,Text+,Watcher+] Simplify requirements for unmuting (should be first rule)
42
44
subtitleSelector ?: string ; // [Element,ElementChild,Watcher] *Used for Filtering*: node.querySelectorAll()
43
45
tagName ?: string ; // [Element*,ElementChild*] node.nodeName
46
+ toCue ?: boolean ; // [Watcher] [BETA]: Convert page element captions to video textTrack cues
44
47
unmuteDelay ?: number ; // [Element,ElementChild,Watcher] Positive number (in ms) to delay unmuting
45
48
videoCueHideCues ?: boolean ; // [Cue] Remove/hide cues instead of setting textTrack.mode = 'hidden'
46
49
videoCueKind ?: string ; // [Cue] Kind of video TextTrack ('captions', 'subtitles', etc.)
@@ -155,9 +158,10 @@ interface Version {
155
158
}
156
159
157
160
interface WatcherData {
158
- filtered ? : boolean ;
161
+ filtered : boolean ;
159
162
initialCall : boolean ;
160
163
skipped ?: boolean ;
164
+ textResults : ReplaceTextResult [ ] ;
161
165
}
162
166
163
167
interface WordOptions {
0 commit comments