Skip to content

Slideshow feature #23

@Bubballoo3

Description

@Bubballoo3

It would be nice to have a toggle that automatically clicks the next button at some interval of time. I found out that the following snippet, when run in the browser console, is able to do this.

  const minutes = 0.5;
  function iterate(seconds){
    const interval = seconds*1000;
    return setTimeout(() => {
        document.querySelector('.fs-control.next')?.click();
        iterate(seconds);
    }, interval)
  };
  iterate(minutes * 60);

With the addition of a switch variable to enable/disable, (which would also have to reset the timer when switched), this could be the main code behind a new SlideshowController javascript file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions