mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
Trigger changes even if videoid doesn't change if video element changes
This commit is contained in:
@@ -2,7 +2,7 @@ import Config from "./config";
|
||||
import { CategorySelection, SponsorTime, FetchResponse, BackgroundScriptContainer, Registration } from "./types";
|
||||
|
||||
import * as CompileConfig from "../config.json";
|
||||
import { findValidElement } from "./utils/pageUtils";
|
||||
import { findValidElementFromSelector } from "./utils/pageUtils";
|
||||
|
||||
export default class Utils {
|
||||
|
||||
@@ -445,7 +445,7 @@ export default class Utils {
|
||||
"#player-container .video-js", // Invidious
|
||||
".main-video-section > .video-container" // Cloudtube
|
||||
]
|
||||
let referenceNode = findValidElement(selectors)
|
||||
let referenceNode = findValidElementFromSelector(selectors)
|
||||
if (referenceNode == null) {
|
||||
//for embeds
|
||||
const player = document.getElementById("player");
|
||||
|
||||
Reference in New Issue
Block a user