mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
shorcut creating preview bar on invidious
This commit is contained in:
@@ -391,6 +391,16 @@ function handleMobileControlsMutations(): void {
|
|||||||
function createPreviewBar(): void {
|
function createPreviewBar(): void {
|
||||||
if (previewBar !== null) return;
|
if (previewBar !== null) return;
|
||||||
|
|
||||||
|
if (onInvidious) { // shortut invidious
|
||||||
|
// skip isVisible check for invidious
|
||||||
|
const el = document.querySelector<HTMLElement>(".vjs-progress-holder");
|
||||||
|
if (el) {
|
||||||
|
previewBar = new PreviewBar(el, onMobileYouTube, onInvidious);
|
||||||
|
updatePreviewBar();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const progressElementSelectors = [
|
const progressElementSelectors = [
|
||||||
// For mobile YouTube
|
// For mobile YouTube
|
||||||
".progress-bar-background",
|
".progress-bar-background",
|
||||||
|
|||||||
Reference in New Issue
Block a user