There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

FooBarrington , (edited )

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) or add it as a bookmark (and apply by clicking on the bookmark), 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 ,

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 ,

Also, often can right click -> loop.

nooeh OP ,

I know how to do this but I was hoping there was some way to build it into the url.

0x4E4F ,

It should’t matter, it should loop even if it’s just the html file locally opened with a browser.

nooeh OP ,

How about JavaScript which writes a simple html page. Any clue how I might go about that?

Serinus , (edited )

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.

https://lemmy.world/pictrs/image/0d9bc30a-ab7e-41ba-882d-f1a5c71d3e55.png

nooeh OP ,

Lol I can understand what that does. The reason I am asking about JavaScript is that potentially I can use it like a url.

master5o1 , (edited )

data:html,

Might work.

Edit: stupid html stripping. Ugh.


<span style="color:#323232;">data:html,
</span>

data:html,

Fine, a paste bin. txt.t0.vc/PDIP

nooeh OP ,

Thank you so much!! Data URLs were exactly what I was looking for with a little modification! Apparently chrome doesn’t allow looping with audio unless it meets certain strict criteria per google. Here is my final URL:

data:text/html,

master5o1 ,

Cool. Can’t see that data url. Use an image of pastebin like it did.

nooeh OP ,

Ah the preview showed the html so I thought it would work.

Here is a pastebin: txt.t0.vc/CLMV

master5o1 ,

Nice.

Scubus ,

When does it delete system32?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines