Fix skip notice behind controls on mobile youtube

Fix #1229
This commit is contained in:
Ajay 2022-03-16 13:30:20 -04:00
parent 340127a7f3
commit 21d4f0487c

View file

@ -372,13 +372,15 @@ export default class Utils {
findReferenceNode(): HTMLElement {
const selectors = [
"#player-container-id", // Mobile YouTube
"#movie_player",
"#c4-player", // Channel Trailer
"#player-container", // Preview on hover
"#main-panel.ytmusic-player-page", // YouTube music
"#player-container .video-js", // Invidious
".main-video-section > .video-container" // Cloudtube
]
];
let referenceNode = findValidElementFromSelector(selectors)
if (referenceNode == null) {
//for embeds