var confirmBtns = document.getElementsByTagName( 'button' ); for ( var i = 0; i < confirmBtns.length; i++) { if (confirmBtns[i].innerHTML == "Confirm" ) { confirmBtns[i].click(); } } 8 BALL POOL MOD HECK http://www.drrannhacks4u.com/2017/04/8-ball-pool-391-hack-unlimited-cash.html?m=1