1/* WP */ 2function turnstileWPCallback() { 3 document.querySelectorAll('#wp-submit').forEach(function(el) { 4 el.style.pointerEvents = 'auto'; 5 el.style.opacity = '1'; 6 }); 7} 8function turnstileCommentCallback() { 9 document.querySelectorAll('.cf-turnstile-comment').forEach(function(el) { 10 el.style.pointerEvents = 'auto'; 11 el.style.opacity = '1'; 12 }); 13} 14/* WP Login: disable submit via keys until Turnstile is complete */ 15document.addEventListener('DOMContentLoaded', function() { 16 var loginForm = document.getElementById('loginform'); 17 if (!loginForm) { return; } 18 if (!loginForm.querySelector('.cf-turnstile')) { return; } 19 function isTurnstileComplete() { 20 var response = loginForm.querySelector('input[name="cf-turnstile-response"]'); 21 return response && response.value.length > 0; 22 } 23 // Block submit event: catches Enter key, button click via form, and requestSubmit() 24 loginForm.addEventListener('submit', function(e) { 25 if (!isTurnstileComplete()) { 26 e.preventDefault(); 27 e.stopImmediatePropagation(); 28 } 29 }, true); 30 // Block programmatic form.submit() calls 31 loginForm.submit = function() { 32 if (isTurnstileComplete()) { 33 HTMLFormElement.prototype.submit.call(loginForm); 34 } 35 }; 36}); 37/* Woo */ 38function turnstileWooLoginCallback() { 39 document.querySelectorAll('.woocommerce-form-login__submit').forEach(function(el) { 40 el.style.pointerEvents = 'auto'; 41 el.style.opacity = '1'; 42 }); 43} 44function turnstileWooRegisterCallback() { 45 document.querySelectorAll('.woocommerce-form-register__submit').forEach(function(el) { 46 el.style.pointerEvents = 'auto'; 47 el.style.opacity = '1'; 48 }); 49} 50function turnstileWooResetCallback() { 51 document.querySelectorAll('.woocommerce-ResetPassword .button').forEach(function(el) { 52 el.style.pointerEvents = 'auto'; 53 el.style.opacity = '1'; 54 }); 55} 56function turnstileWooAccountCallback() { 57 document.querySelectorAll('.woocommerce-EditAccountForm button[name=save_account_details], .woocommerce-EditAccountForm input[name=save_account_details]').forEach(function(el) { 58 el.style.pointerEvents = 'auto'; 59 el.style.opacity = '1'; 60 }); 61} 62/* EDD */ 63function turnstileEDDLoginCallback() { 64 document.querySelectorAll('#edd_login_submit').forEach(function(el) { 65 el.style.pointerEvents = 'auto'; 66 el.style.opacity = '1'; 67 }); 68} 69function turnstileEDDRegisterCallback() { 70 document.querySelectorAll('#edd_register_form .edd-submit').forEach(function(el) { 71 el.style.pointerEvents = 'auto'; 72 el.style.opacity = '1'; 73 }); 74} 75/* PMP */ 76function turnstilePMPLoginCallback() { 77 document.querySelectorAll('#wp-submit').forEach(function(el) { 78 el.style.pointerEvents = 'auto'; 79 el.style.opacity = '1'; 80 }); 81} 82/* Elementor */ 83function turnstileElementorCallback() { 84 document.querySelectorAll('.elementor-form button[type="submit"]').forEach(function(el) { 85 el.style.pointerEvents = 'auto'; 86 el.style.opacity = '1'; 87 }); 88} 89/* Kadence */ 90function turnstileKadenceCallback() { 91 document.querySelectorAll('.kb-adv-form-submit-button, .kb-submit-field .kb-button, .kb-form-submit .kb-button, .kb-submit-field button[type="submit"], .kb-form-submit button[type="submit"]').forEach(function(el) { 92 el.style.pointerEvents = 'auto'; 93 el.style.opacity = '1'; 94 }); 95} 96/* CF7 */ 97function turnstileCF7Callback() { 98 document.querySelectorAll('.wpcf7-submit').forEach(function(el) { 99 el.style.pointerEvents = 'auto'; 100 el.style.opacity = '1'; 101 }); 102} 103/* MC4WP */ 104function turnstileMC4WPCallback() { 105 document.querySelectorAll('.mc4wp-form-fields input[type=submit]').forEach(function(el) { 106 el.style.pointerEvents = 'auto'; 107 el.style.opacity = '1'; 108 }); 109} 110/* MailPoet */ 111function turnstileMailpoetCallback() { 112 document.querySelectorAll('.mailpoet_submit').forEach(function(el) { 113 el.style.pointerEvents = 'auto'; 114 el.style.opacity = '1'; 115 });
116} 117/* BuddyPress */ 118function turnstileBPCallback() { 119 document.querySelectorAll('#buddypress #signup-form .submit').forEach(function(el) { 120 el.style.pointerEvents = 'auto'; 121 el.style.opacity = '1'; 122 }); 123} 124/* BBPress */ 125function turnstileBBPressReplyCallback() { 126 document.querySelectorAll('#bbp_reply_submit').forEach(function(el) { 127 el.style.pointerEvents = 'auto'; 128 el.style.opacity = '1'; 129 }); 130} 131/* WPForms */ 132function turnstileWPFCallback() { 133 document.querySelectorAll('.wpforms-submit').forEach(function(el) { 134 el.style.pointerEvents = 'auto'; 135 el.style.opacity = '1'; 136 }); 137} 138/* Fluent Forms */ 139function turnstileFluentCallback() { 140 document.querySelectorAll('.fluentform .ff-btn-submit').forEach(function(el) { 141 el.style.pointerEvents = 'auto'; 142 el.style.opacity = '1'; 143 }); 144} 145/* Formidable Forms */ 146function turnstileFormidableCallback() { 147 document.querySelectorAll('.frm_forms .frm_button_submit').forEach(function(el) { 148 el.style.pointerEvents = 'auto'; 149 el.style.opacity = '1'; 150 }); 151} 152/* Gravity Forms */ 153function turnstileGravityCallback() { 154 document.querySelectorAll('.gform_button').forEach(function(el) { 155 el.style.pointerEvents = 'auto'; 156 el.style.opacity = '1'; 157 }); 158} 159/* Ultimate Member */ 160function turnstileUMCallback() { 161 document.querySelectorAll('#um-submit-btn').forEach(function(el) { 162 el.style.pointerEvents = 'auto'; 163 el.style.opacity = '1'; 164 }); 165} 166/* WP User Frontend */ 167function turnstileWPUFCallback() { 168 document.querySelectorAll('.wpuf-form input[type="submit"]').forEach(function(el) { 169 el.style.pointerEvents = 'auto'; 170 el.style.opacity = '1'; 171 }); 172} 173/* MemberPress */ 174function turnstileMEPRCallback() { 175 document.querySelectorAll('.mepr-submit').forEach(function(el) { 176 el.style.pointerEvents = 'auto'; 177 el.style.opacity = '1'; 178 }); 179} 180/* BBPress */ 181function turnstileBBPressCreateCallback() { 182 document.querySelectorAll('#bbp_topic_submit').forEach(function(el) { 183 el.style.pointerEvents = 'auto'; 184 el.style.opacity = '1'; 185 }); 186} 187/* SureForms */ 188function turnstilesureformsCallback() { 189 document.querySelectorAll('.srfm-submit-container .srfm-submit-button').forEach(function(el) { 190 el.style.pointerEvents = 'auto'; 191 el.style.opacity = '1'; 192 }); 193} 194/* Jetpack */ 195function turnstileJetpackCallback() { 196 document.querySelectorAll('.wp-block-jetpack-contact-form button').forEach(function(el) { 197 el.style.pointerEvents = 'auto'; 198 el.style.opacity = '1'; 199 }); 200} 201/* Sunshine Photo Cart */ 202function turnstileSunshineCheckoutCallback() { 203 document.querySelectorAll('#sunshine--checkout--submit').forEach(function(el) { 204 el.style.pointerEvents = 'auto'; 205 el.style.opacity = '1'; 206 }); 207}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.