From 88afd539381f8bf90e4c1e9e306a9fbe45393d02 Mon Sep 17 00:00:00 2001 From: Marvin Alexander Krebber Date: Sun, 27 Oct 2024 13:39:04 +0100 Subject: [PATCH] fixed slider not showing up on most recent dv-player-fullscreen --- firefox/skipper.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firefox/skipper.js b/firefox/skipper.js index 1d7598db..322dc65e 100644 --- a/firefox/skipper.js +++ b/firefox/skipper.js @@ -1020,14 +1020,15 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO const AmazonSliderStyle = "height: 1em;background: rgb(221, 221, 221);display: none;width:200px;"; async function Amazon_SpeedSlider(video) { if (video) { - let alreadySlider = document.querySelector("#videoSpeedSlider"); + let alreadySlider = document.querySelector(".dv-player-fullscreen #videoSpeedSlider"); if (!alreadySlider) { // infobar position for the slider to be added let position = document.querySelector(".dv-player-fullscreen [class*=infobar-container]")?.firstChild?.lastChild; + console.log("video", position); if (position) createSlider(video, position, AmazonSliderStyle, ""); } else { // need to resync the slider with the video sometimes - let speed = document.querySelector("#videoSpeed"); + let speed = document.querySelector(".dv-player-fullscreen #videoSpeed"); if (video.playbackRate != alreadySlider.value / 10) { video.playbackRate = alreadySlider.value / 10; }