Improve some configs

This commit is contained in:
Tobias Reisinger 2023-06-12 18:15:53 +02:00
parent 58d49da5c2
commit 2ab433a616
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 8 additions and 2 deletions
.local/share/qutebrowser/userscripts

View file

@ -350,13 +350,16 @@ def make_js_code(username, password):
function fillFirstForm() {
var forms = document.getElementsByTagName("form");
var found_any = false;
for (i = 0; i < forms.length; i++) {
if (hasPasswordField(forms[i])) {
loadData2Form(forms[i]);
return;
found_any = true;
}
}
alert("No Credentials Form found");
if (!found_any) {
alert("No Credentials Form found");
}
};
fillFirstForm()