From c8c83df1ebb220994a67a23f952f1c179657a50e Mon Sep 17 00:00:00 2001 From: ddjain Date: Fri, 13 Mar 2026 17:54:31 +0530 Subject: [PATCH] feat: add autofill append mode for concatenated OTP authentication (#1516) Signed-off-by: ddjain Made-with: Cursor --- _locales/en/messages.json | 12 ++++++++++++ src/components/Popup/EntryComponent.vue | 1 + src/components/Popup/PreferencesPage.vue | 17 +++++++++++++++++ src/content.ts | 14 ++++++++++++-- src/definitions/module-interface.d.ts | 1 + src/models/settings.ts | 1 + src/store/Menu.ts | 10 ++++++++++ 7 files changed, 54 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 1509958f..0e9950d7 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -297,6 +297,18 @@ "message": "Use Autofill", "description": "Use Autofill" }, + "autofill_mode": { + "message": "Autofill mode", + "description": "Label for autofill mode selector" + }, + "autofill_mode_replace": { + "message": "Replace (dedicated OTP field)", + "description": "Autofill replaces the value in detected OTP field" + }, + "autofill_mode_append": { + "message": "Append to focused field (password + OTP)", + "description": "Autofill appends the code to the currently focused input" + }, "use_high_contrast": { "message": "Use High Contrast", "description": "Use High Contrast" diff --git a/src/components/Popup/EntryComponent.vue b/src/components/Popup/EntryComponent.vue index 92099b5b..6a4a2684 100644 --- a/src/components/Popup/EntryComponent.vue +++ b/src/components/Popup/EntryComponent.vue @@ -227,6 +227,7 @@ export default Vue.extend({ chrome.tabs.sendMessage(tab.id, { action: "pastecode", code: entry.code, + mode: this.$store.state.menu.autofillMode, }); } } diff --git a/src/components/Popup/PreferencesPage.vue b/src/components/Popup/PreferencesPage.vue index 299b9d8d..2db6850d 100644 --- a/src/components/Popup/PreferencesPage.vue +++ b/src/components/Popup/PreferencesPage.vue @@ -30,6 +30,15 @@ + + + +