$( “#oh-no-not-another-cookie-accept-btn” ).on( “click”, function() { a_ = document.getElementById(‘cn-accept-cookie’); a_.click(); });