This code should work. To my understanding it clicks as soon as the button is loaded + the delay you set
function doReload() {
setTimeout(function(){ $(".classNameOfButton").click(); }, 1000);
}
doReload();
Just copy this code into the HTMLSnippet widget and check the JavaScript with jQuery box