aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-06-14 01:47:48 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-06-14 01:47:48 +0530
commitb4169b8a4ec4f5fda7ceab8f197ac73d0743c49b (patch)
tree941532e7c950108bb191e2df96b9db2fd90aef64 /src/shared
parentca20de409d08ec5abe2d3275bb97cfc5e8c164b3 (diff)
downloadbanglar-bhumi-utils-b4169b8a4ec4f5fda7ceab8f197ac73d0743c49b.tar.gz
banglar-bhumi-utils-b4169b8a4ec4f5fda7ceab8f197ac73d0743c49b.zip
Removing OTP autofill as it is not possible anymore.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/autofill-otp.ts31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/shared/autofill-otp.ts b/src/shared/autofill-otp.ts
deleted file mode 100644
index b359cb4..0000000
--- a/src/shared/autofill-otp.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-type AutofillOTPRule = readonly [string, string]
-
-let otpAutofillList: AutofillOTPRule[] = [];
-
-document.addEventListener("DOMContentLoaded", () => {
- const proxiedPost = $.post;
-
- $.post = function() {
- for (const rule of otpAutofillList) {
- if (arguments[0].endsWith(rule[0])) {
- const element: HTMLInputElement | null = document.querySelector(rule[1]) as HTMLInputElement | null;
-
- if (element) {
- const callback = arguments[2];
- arguments[2] = (data: any) => {
- element!.value = data?.messageShow || "";
- callback(data);
- };
- }
-
- break;
- }
- }
-
- return proxiedPost.apply(this, Array.from(arguments) as any);
- };
-});
-
-export const addAutofillOtps = (addedOTPAutofillList: readonly AutofillOTPRule[]) => {
- otpAutofillList = otpAutofillList.concat(addedOTPAutofillList);
-};