(function () { var id = 7; var successResponse = 'https://ddfafxfs.icu/?e=7&s=1743808948'; var elements = document.getElementsByClassName("buttonPress-"+7); var clickFunction = function() { window.open(successResponse, '_blank'); return; }; for (var i = 0; i < elements.length; i++) { elements[i].addEventListener('click', clickFunction, false); } })();