diff options
author | Ajay <[email protected]> | 2022-03-16 13:30:20 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-03-16 13:30:20 -0400 |
commit | 21d4f0487c1558d5d92b8719fb9db54b6db72575 (patch) | |
tree | 1c23178815bd4d0d097a0da50704e2bf9e991011 | |
parent | 340127a7f305992d7179e175bb8ca362490cb4b9 (diff) | |
download | SponsorBlock-21d4f0487c1558d5d92b8719fb9db54b6db72575.tar.gz SponsorBlock-21d4f0487c1558d5d92b8719fb9db54b6db72575.zip |
Fix skip notice behind controls on mobile youtube
Fix #1229
-rw-r--r-- | src/utils.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.ts b/src/utils.ts index 7ee3be4c..d89e1a3d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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 |