aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/functionality/application-receipt.ts4
-rw-r--r--src/scripts/optimize.ts8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/functionality/application-receipt.ts b/src/scripts/functionality/application-receipt.ts
index 7fdf4d0..878b910 100644
--- a/src/scripts/functionality/application-receipt.ts
+++ b/src/scripts/functionality/application-receipt.ts
@@ -1,4 +1,4 @@
-const receiptFormElement = document.querySelector("#form_reprint_request") as HTMLElement;
+const receiptFormElement = document.getElementById("form_reprint_request") as HTMLElement;
receiptFormElement.removeAttribute("id");
receiptFormElement.removeAttribute("name");
receiptFormElement.removeAttribute("onsubmit");
@@ -10,7 +10,7 @@ let captchaElement = document.querySelector("#werter > div > div:nth-child(4)")
if (captchaElement) {
captchaElement = captchaElement!;
- const captchaValueElement = document.querySelector("#captchaText") as HTMLInputElement;
+ const captchaValueElement = document.getElementById("captchaText") as HTMLInputElement;
const captchaFieldElement = document.querySelector("[name=txtDrawText]") as HTMLInputElement;
const removeCaptcha = () => {
captchaFieldElement.value = captchaValueElement.value;
diff --git a/src/scripts/optimize.ts b/src/scripts/optimize.ts
index 4acf66f..8389c53 100644
--- a/src/scripts/optimize.ts
+++ b/src/scripts/optimize.ts
@@ -1,7 +1,7 @@
-import { modifyDOM, DOMModifier } from "@/utils/modify-dom";
+import { modifyDOM } from "@/utils/modify-dom";
modifyDOM([
- new DOMModifier("head > script:nth-child(34)", { src: null }),
- new DOMModifier("head > script:nth-child(36)", { src: null, innerHTML: "$.prototype.nivoSlider = () => {};" }),
- new DOMModifier("head > script:nth-child(43)", { src: null })
+ ["head > script:nth-child(34)", { src: null }],
+ ["head > script:nth-child(36)", { src: null, innerHTML: "$.prototype.nivoSlider = () => {};" }],
+ ["head > script:nth-child(43)", { src: null }]
]);