So if I have lorenipsum.com/test.mp4, can I modify it like so: lorenipsum.com/test.mp4?&loop=1 or some other append to make it loop?
I wrote a quick bookmarklet for you:
javascript: (() => document.querySelectorAll(“video”).forEach(video => video.loop = true))();
You can paste this into the URL bar (and press Enter to apply), it will make all video elements on the page loop automatically. Caveats:
- It won’t work if the video element is in a subframe (shouldn’t be the case too often with normal pages)
- Only works for HTML5 video elements
- Custom controls might override the native loop, but they shouldn’t
Serinus@lemmy.world 11 months ago
You can make a very simple html page that contains the video and do it there.
www.w3schools.com/tags/att_video_loop.asp
Assuming you can host html somewhere.
master5o1@lemmy.nz 11 months ago
Also, often can right click -> loop.
nooeh@lemmy.world 11 months ago
I know how to do this but I was hoping there was some way to build it into the url.
0x4E4F@infosec.pub 11 months ago
It should’t matter, it should loop even if it’s just the html file locally opened with a browser.
nooeh@lemmy.world 11 months ago
How about JavaScript which writes a simple html page. Any clue how I might go about that?
Serinus@lemmy.world 11 months ago
Javascript is overkill. Open a file on your desktop, name it whatever.html. Open it in notepad, put this in it. Save it, open it in your browser.