Add support for vorapis v3

Based on patch by @ten4dinosaur
This commit is contained in:
Ajay
2024-12-08 02:56:10 -05:00
parent 62c3bc1c7a
commit 7e824df73d
6 changed files with 54 additions and 9 deletions

View File

@@ -12,4 +12,8 @@ export function runCompatibilityChecks() {
Config.config.showZoomToFillError2 = false;
}, 10000);
}
}
export function isVorapisInstalled() {
return document.querySelector(`.v3`);
}

View File

@@ -10,7 +10,9 @@ export function getControls(): HTMLElement {
// Invidious/videojs video element's controls element
".vjs-control-bar",
// Piped shaka player
".shaka-bottom-controls"
".shaka-bottom-controls",
// Vorapis v3
".html5-player-chrome"
];
for (const controlsSelector of controlsSelectors) {