Another fix for button placement on new YouTube layout

This commit is contained in:
Ajay
2025-04-25 02:13:33 -04:00
parent 01df1e655e
commit b2a5539324

View File

@@ -4,10 +4,10 @@ import Config from "../config";
export function getControls(): HTMLElement { export function getControls(): HTMLElement {
const controlsSelectors = [ const controlsSelectors = [
// YouTube
".ytp-right-controls",
// New YouTube (2025 April) // New YouTube (2025 April)
".ytp-right-controls-right", ".ytp-right-controls-right",
// YouTube
".ytp-right-controls",
// Mobile YouTube // Mobile YouTube
".player-controls-top", ".player-controls-top",
// Invidious/videojs video element's controls element // Invidious/videojs video element's controls element