mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
shorcut creating preview bar on invidious
This commit is contained in:
@@ -391,6 +391,16 @@ function handleMobileControlsMutations(): void {
|
||||
function createPreviewBar(): void {
|
||||
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 = [
|
||||
// For mobile YouTube
|
||||
".progress-bar-background",
|
||||
|
||||
Reference in New Issue
Block a user