• nooeh@lemmy.worldOP
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

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

    • nooeh@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

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

      • Serinus@lemmy.world
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        1 year 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.

    • 0x4E4F@infosec.pub
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

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

  • FooBarrington@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year 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