This is unnecessary. Use the built in browser autoplay block.
And if that doesn't work, use reader view (as you always should)