|
1 | 1 | interface AudioRule { |
2 | | - _displayElement?: HTMLElement; // Element to display/hide |
3 | | - _dynamic?: boolean; // [Dynamic] Set to true on a dynamic rule |
4 | | - apfCaptions?: boolean; // [Cue] Display an HTML version of the caption/subtitle text: Requires videoCueHideCues = true |
5 | | - apfCaptionsSelector?: string; // [Cue] Selector for container that will hold the custom HTML captions |
6 | | - checkInterval?: number; // [Watcher] Set a custom watch interval (in ms, Default: 20) |
7 | | - className?: string; // [Element] node.className.includes() |
8 | | - containsSelector?: string; // [Element] node.querySelector() [Not commonly used] |
9 | | - convertBreaks?: boolean; // [Element,ElementChild] Convert <br> to '\n' |
10 | | - dataPropPresent?: string; // [Element] node.dataset.hasOwnProperty() |
11 | | - disabled?: boolean; // [All] Set automatically based on iframe status or missing a required property |
12 | | - displayHide?: string; // [Element,ElementChild,Watcher] Display style for hiding captions (Default: 'none') |
13 | | - displaySelector?: string; // [Element,ElementChild,Watcher] Alternate selector to hide/show captions |
14 | | - displayShow?: string; // [Element,ElementChild,Watcher] Display style for showing captions (Default: '') |
15 | | - displayVisibility?: boolean; // [Watcher*] Use visibility to show/hide caption container |
16 | | - dynamicClasslist?: string; // [Dynamic] Set when a dynamicTextKey is found |
17 | | - dynamicTargetMode?: string; // [Dynamic] Target mode for dynamic rule |
18 | | - dynamicTextKey?: string; // [Dynamic] Key used to identify a dynamic caption node |
19 | | - externalSub?: boolean; // [Cue] [BETA]: Convert external captions/subtitles obtained from remote source to VTTCues |
20 | | - externalSubFormatKey?: string; // [Cue] [BETA]: Key name for caption/subtitle format (Default: 'format') |
21 | | - externalSubTrackLabel?: string; // [Cue] [BETA]: Label used for processed TextTrack |
| 2 | + _displayElement?: HTMLElement; // Element to display/hide |
| 3 | + _dynamic?: boolean; // [Dynamic] Set to true on a dynamic rule |
| 4 | + apfCaptions?: boolean; // [Cue] Display an HTML version of the caption/subtitle text: Requires videoCueHideCues = true |
| 5 | + apfCaptionsSelector?: string; // [Cue] Selector for container that will hold the custom HTML captions |
| 6 | + checkInterval?: number; // [Watcher] Set a custom watch interval (in ms, Default: 20) |
| 7 | + className?: string; // [Element] node.className.includes() |
| 8 | + containsSelector?: string; // [Element] node.querySelector() [Not commonly used] |
| 9 | + convertBreaks?: boolean; // [Element,ElementChild] Convert <br> to '\n' |
| 10 | + dataPropPresent?: string; // [Element] node.dataset.hasOwnProperty() |
| 11 | + disabled?: boolean; // [All] Set automatically based on iframe status or missing a required property |
| 12 | + displayHide?: string; // [Element,ElementChild,Watcher] Display style for hiding captions (Default: 'none') |
| 13 | + displaySelector?: string; // [Element,ElementChild,Watcher] Alternate selector to hide/show captions |
| 14 | + displayShow?: string; // [Element,ElementChild,Watcher] Display style for showing captions (Default: '') |
| 15 | + displayVisibility?: boolean; // [Watcher*] Use visibility to show/hide caption container |
| 16 | + dynamicClasslist?: string; // [Dynamic] Set when a dynamicTextKey is found |
| 17 | + dynamicTargetMode?: string; // [Dynamic] Target mode for dynamic rule |
| 18 | + dynamicTextKey?: string; // [Dynamic] Key used to identify a dynamic caption node |
| 19 | + externalSub?: boolean; // [Cue] [BETA]: Convert external captions/subtitles obtained from remote source to VTTCues |
| 20 | + externalSubFormatKey?: string; // [Cue] [BETA]: Key name for caption/subtitle format (Default: 'format') |
| 21 | + externalSubTrackLabel?: string; // [Cue] [BETA]: Label used for processed TextTrack |
22 | 22 | externalSubTrackMode?: TextTrackMode; // [Cue] [BETA]: TextTrack mode for new TextTrack |
23 | | - externalSubURLKey?: string; // [Cue] [BETA]: Key name for caption/subtitle URL (Default: 'url') |
24 | | - externalSubVar?: string; // [Cue] [BETA]: Global variable to find available caption/subtitle data |
25 | | - filterSubtitles?: boolean; // [All] Filter subtitle text (Default: true) |
26 | | - hasChildrenElements?: boolean; // [Element] node.childElementCount > 0 [Not commonly used] |
27 | | - iframe?: boolean | undefined; // [All] Pages to run on (true: only iframes, false: no iframes, undefined: all) |
28 | | - ignoreMutations?: boolean; // [Element,ElementChild,Text,Watcher] Ignore mutations when filtering captions/subtitles |
29 | | - mode: string; // [All*] 'cue', 'dynamic', 'element', 'elementChild', 'text', 'watcher' |
30 | | - muteMethod?: number; // [All] Override global muteMthod (0: tab, 1: video) |
31 | | - note?: string; // [All] Note about the rule |
32 | | - parentSelector?: string; // [ElementChild?,Text,Watcher] parent.contains(node) |
33 | | - parentSelectorAll?: string; // [ElementChild?] Check if any parents contain the node: parent.contains(node) |
34 | | - preserveWhiteSpace?: boolean; // [Element,ElementChild] Set whiteSpace = 'pre' on subtitle elements |
35 | | - removeSubtitleSpacing?: boolean; // [Element] Remove subtitle padding/margin when hiding |
36 | | - rootNode?: boolean; // [Element,ElementChild] Use getRootNode() or assume document (Default: false) |
37 | | - showSubtitles?: number; // [All] Override global showSubtitles (0: all, 1: filtered, 2: unfiltered, 3: none) |
38 | | - simpleUnmute?: boolean; // [Element,ElementChild,Text+,Watcher+] Simplify requirements for unmuting |
39 | | - subtitleSelector?: string; // [Element,ElementChild,Watcher] *Used for Filtering*: node.querySelector() |
40 | | - tagName?: string; // [Element*,ElementChild*] node.nodeName |
41 | | - unmuteDelay?: number; // [Element,ElementChild,Watcher] Positive number (in ms) to delay unmuting |
42 | | - videoCueHideCues?: boolean; // [Cue] Remove/hide cues instead of setting textTrack.mode = 'hidden' |
43 | | - videoCueKind?: string; // [Cue] Kind of video TextTrack ('captions', 'subtitles', etc.) |
44 | | - videoCueLabel?: string; // [Cue] Label for video TextTrack |
45 | | - videoCueLanguage?: string; // [Cue] Language for video TextTrack |
46 | | - videoCueRequireShowing?: boolean; // [Cue] Override global setting for muteCueRequireShowing |
47 | | - videoCueSync?: number; // [Cue] Adjust subtitle sync +/- (in seconds) |
48 | | - videoSelector?: string; // [Cue,Watcher] Selector for video, also used for volume muteMethod (Default: 'video') |
| 23 | + externalSubURLKey?: string; // [Cue] [BETA]: Key name for caption/subtitle URL (Default: 'url') |
| 24 | + externalSubVar?: string; // [Cue] [BETA]: Global variable to find available caption/subtitle data |
| 25 | + filterSubtitles?: boolean; // [All] Filter subtitle text (Default: true) |
| 26 | + hasChildrenElements?: boolean; // [Element] node.childElementCount > 0 [Not commonly used] |
| 27 | + iframe?: boolean | undefined; // [All] Pages to run on (true: only iframes, false: no iframes, undefined: all) |
| 28 | + ignoreMutations?: boolean; // [Element,ElementChild,Text,Watcher] Ignore mutations when filtering captions/subtitles |
| 29 | + mode: string; // [All*] 'cue', 'dynamic', 'element', 'elementChild', 'text', 'watcher' |
| 30 | + muteMethod?: number; // [All] Override global muteMthod (0: tab, 1: video) |
| 31 | + note?: string; // [All] Note about the rule |
| 32 | + parentSelector?: string; // [ElementChild?,Text,Watcher] parent.contains(node) |
| 33 | + parentSelectorAll?: string; // [ElementChild?] Check if any parents contain the node: parent.contains(node) |
| 34 | + preserveWhiteSpace?: boolean; // [Element,ElementChild] Set whiteSpace = 'pre' on subtitle elements |
| 35 | + removeSubtitleSpacing?: boolean; // [Element] Remove subtitle padding/margin when hiding |
| 36 | + rootNode?: boolean; // [Element,ElementChild] Use getRootNode() or assume document (Default: false) |
| 37 | + showSubtitles?: number; // [All] Override global showSubtitles (0: all, 1: filtered, 2: unfiltered, 3: none) |
| 38 | + simpleUnmute?: boolean; // [Element,ElementChild,Text+,Watcher+] Simplify requirements for unmuting |
| 39 | + subtitleSelector?: string; // [Element,ElementChild,Watcher] *Used for Filtering*: node.querySelector() |
| 40 | + tagName?: string; // [Element*,ElementChild*] node.nodeName |
| 41 | + unmuteDelay?: number; // [Element,ElementChild,Watcher] Positive number (in ms) to delay unmuting |
| 42 | + videoCueHideCues?: boolean; // [Cue] Remove/hide cues instead of setting textTrack.mode = 'hidden' |
| 43 | + videoCueKind?: string; // [Cue] Kind of video TextTrack ('captions', 'subtitles', etc.) |
| 44 | + videoCueLabel?: string; // [Cue] Label for video TextTrack |
| 45 | + videoCueLanguage?: string; // [Cue] Language for video TextTrack |
| 46 | + videoCueRequireShowing?: boolean; // [Cue] Override global setting for muteCueRequireShowing |
| 47 | + videoCueSync?: number; // [Cue] Adjust subtitle sync +/- (in seconds) |
| 48 | + videoSelector?: string; // [Cue,Watcher] Selector for video, also used for volume muteMethod (Default: 'video') |
49 | 49 | } |
50 | 50 |
|
51 | 51 | interface BackgroundData { |
|
0 commit comments