1(function () { 2 document.addEventListener("submit", function (e) { 3 const form = e.submitter.closest("form"); 4 if (!form) { 5 return; 6 } 7 8 const element = form.querySelector(".frc-captcha"); 9 if (!element) { 10 return; 11 } 12 13 setTimeout(() => { 14 // We reset the widget after a short delay to give the form time to grab the solution and submit it 15 // This is a workaround for the fact that the form submit event is fired before the solution value is grabbed 16 // 1 second is really conservative as this is not affected by network speed or anything like that 17 if (element.friendlyChallengeWidget) { 18 element.friendlyChallengeWidget.reset(); 19 } else if (element.frcWidget) { 20 element.frcWidget.reset(); 21 } 22 }, 1000); 23 }); 24})();
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.