Instagram video player with basic control of volume and skipping.

try to take over the world!

< Feedback de Instagram video player with basic control of volume and skipping.

Avaliação: Bom - o script funciona

§
Publicado em: 10/09/2022

Thanks a lot! You could improve this script by replacing:

     if(videoList[0]){
        videoList[0].setAttribute("controls", "controls");
        videoList[0].style.zIndex = "1";
     }

with:

     for (var video of videoList){
        console.log(video)
        video.setAttribute("controls", "controls");
        video.style.zIndex = "1";
     }

That way it works on all the videos on the home page.

§
Publicado em: 04/09/2023
Editado em: 04/09/2023

It should rather be

     for (var video of videoList){
        video.setAttribute("controls", "controls");
        video.style.zIndex = "1";
     }

without the console.log(video) that writes to the log every second.

The controls don't work though and only display when the video is paused, so it doesn't quite work.

Enviar resposta

Entre para publicar uma resposta.

长期地址
遇到问题?请前往 GitHub 提 Issues。