blob: 94e6b0e712f8a00a34ab80472e4993d7378d23c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/**
* Hides the CAPTCHA section on the application-receipt page and
* stubs the form validation so the user can proceed without
* solving a CAPTCHA.
*/
type WindowApplicationReceipt = {
validateForm?: () => boolean
} & Window;
document.addEventListener("DOMContentLoaded", () => {
$("#werter > div > form > div:nth-child(4)").hide();
(window as WindowApplicationReceipt).validateForm = () => true;
});
|