I don't like the length of their solution, quite the same logic can be shortened to just a few lines of code
setInterval(() => {
const { currentSpeed, horizon: { obstacles: [{ xPos, width, yPos } = {}] } } = Runner?.instance_;
if (xPos < 25 * currentSpeed - width && yPos >= 75)
document.dispatchEvent(new KeyboardEvent('keydown', { keyCode: 32 }));
}, 100);