10 lines
421 B
JavaScript
10 lines
421 B
JavaScript
browser.storage.local.get().then(async (storage) => {
|
|
if(storage.attempt==0 && storage.login.length && storage.password.length){
|
|
await browser.storage.local.set({
|
|
attempt: 1
|
|
})
|
|
document.getElementsByName("login")[0].value=storage.login
|
|
document.getElementsByName("password")[0].value=storage.password
|
|
document.getElementsByName("loginform")[0].submit()
|
|
}
|
|
}) |