Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into chapters

This commit is contained in:
Ajay
2022-04-11 01:26:39 -04:00
13 changed files with 298 additions and 163 deletions

View File

@@ -354,13 +354,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