I use greasemonkey to do a similar trick with the skip and dismiss buttons. But added random delays up to 2 seconds in an attempt to mimic a human clicking the button.
Also instead of an interval running, you can use MutationObserver and a callback to only run the code when the DOM changes and adds the button.