• @master5o1
      link
      67 months ago

      Also, often can right click -> loop.

      • @[email protected]
        link
        fedilink
        6
        edit-2
        7 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.

        • @[email protected]OP
          link
          fedilink
          37 months ago

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

            • @[email protected]OP
              link
              fedilink
              15 months ago

              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,

    • @[email protected]
      link
      fedilink
      English
      07 months ago

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

  • @[email protected]
    link
    fedilink
    4
    edit-2
    7 months ago

    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