There’s a BApp for that: AutoRepeater

AutoRepeater