mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
parent
340127a7f3
commit
21d4f0487c
1 changed files with 3 additions and 1 deletions
|
@ -372,13 +372,15 @@ export default class Utils {
|
||||||
|
|
||||||
findReferenceNode(): HTMLElement {
|
findReferenceNode(): HTMLElement {
|
||||||
const selectors = [
|
const selectors = [
|
||||||
|
"#player-container-id", // Mobile YouTube
|
||||||
"#movie_player",
|
"#movie_player",
|
||||||
"#c4-player", // Channel Trailer
|
"#c4-player", // Channel Trailer
|
||||||
"#player-container", // Preview on hover
|
"#player-container", // Preview on hover
|
||||||
"#main-panel.ytmusic-player-page", // YouTube music
|
"#main-panel.ytmusic-player-page", // YouTube music
|
||||||
"#player-container .video-js", // Invidious
|
"#player-container .video-js", // Invidious
|
||||||
".main-video-section > .video-container" // Cloudtube
|
".main-video-section > .video-container" // Cloudtube
|
||||||
]
|
];
|
||||||
|
|
||||||
let referenceNode = findValidElementFromSelector(selectors)
|
let referenceNode = findValidElementFromSelector(selectors)
|
||||||
if (referenceNode == null) {
|
if (referenceNode == null) {
|
||||||
//for embeds
|
//for embeds
|
||||||
|
|
Loading…
Reference in a new issue