const consentForm = document.getElementsByClassName('consent-form') if (consentForm.length) { consentForm[0].submit() }