diff options
Diffstat (limited to 'src/scripts/fix-application-receipt.ts')
| -rw-r--r-- | src/scripts/fix-application-receipt.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/scripts/fix-application-receipt.ts b/src/scripts/fix-application-receipt.ts deleted file mode 100644 index 11dddf0..0000000 --- a/src/scripts/fix-application-receipt.ts +++ /dev/null @@ -1,21 +0,0 @@ -const receiptFormElement = document.querySelector("#form_reprint_request")!; -receiptFormElement.removeAttribute("id"); -receiptFormElement.removeAttribute("name"); -receiptFormElement.removeAttribute("onsubmit"); -receiptFormElement.removeAttribute("target"); -receiptFormElement.removeAttribute("autocomplete"); -receiptFormElement.removeAttribute("rel"); - -let captchaElement = document.querySelector("#werter > div > div:nth-child(4)"); - -if (captchaElement) { - captchaElement = captchaElement!; - const captchaValueElement = document.querySelector("#captchaText") as HTMLInputElement; - const captchaFieldElement = document.querySelector("[name=txtDrawText]") as HTMLInputElement; - const removeCaptcha = () => { - captchaFieldElement.value = captchaValueElement.value; - (captchaElement as any).style.display = "none"; - setTimeout(removeCaptcha, 1000); - }; - removeCaptcha(); -} |
