diff --git a/extension/content.js b/extension/content.js index bfb46c7..8144bd4 100644 --- a/extension/content.js +++ b/extension/content.js @@ -3,6 +3,11 @@ chrome.runtime.onMessage.addListener(message => { const loginForm = getLoginForm(); loginForm.loginField.value = message.login; loginForm.passwordField.value = message.password; + + var event = new Event('input'); + loginForm.loginField.dispatchEvent(event); + loginForm.passwordField.dispatchEvent(event); + loginForm.form.submit(); });