This script also prevents the player from getting paused by the user.
To fix it, substitute line 15 with this:
var button = document.querySelector("content-overlay-gate__allow-pointers button");
That will click the red refresh button on the error overlay instead of the regular play button. Unlike the regular play button, the error overlay is not loaded when everything is fine, so the unpause action won't get triggered
This script also prevents the player from getting paused by the user.
To fix it, substitute line 15 with this:
That will click the red refresh button on the error overlay instead of the regular play button. Unlike the regular play button, the error overlay is not loaded when everything is fine, so the unpause action won't get triggered