Clicking on a specific button by javascript – Auto refresh Plus extensions

I use the Auto Refresh Plus extension to refresh the Google Chrome page. This extension has a function called automatic click, which looks for the button we defined for it after every page refresh, and if it finds that button, it clicks on that button. In the settings of this extension, there is a function that we can use Java code Inject the script – after the initial click I need to click on another button that appears. But I don’t know how to write the js code to click on the second button.

Custom Scripts

Please help me write this code. This is the button that appears after the first click

Ticket