bump: 4.0 - new react frontend

This commit is contained in:
2026-03-15 17:27:16 +01:00
parent 6438deaa4e
commit becc4f9445
24 changed files with 722 additions and 262 deletions

25
src/content.js Normal file
View File

@@ -0,0 +1,25 @@
// eslint-disable-next-line no-undef
const api = typeof browser !== "undefined" ? browser : chrome;
api.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.action === "autofill") {
const input = document.getElementById('input2factor');
const button = document.getElementById('btn-login');
if (input) {
input.focus();
input.value = request.code;
input.dispatchEvent(new Event('input', { bubbles: true }));
input.dispatchEvent(new Event('change', { bubbles: true }));
if (button) {
setTimeout(() => {
button.click();
}, 150);
}
sendResponse({ status: "bomba" });
}
}
return true;
});