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

View file

@ -18,6 +18,9 @@ alias bspwm-single='echo "single" > /tmp/bspwm_mode; bspc wm -r'
alias clip='xclip -selection clipboard' alias clip='xclip -selection clipboard'
alias cp='cp -iv' alias cp='cp -iv'
alias dcu='docker compose up -d'
alias dcul='docker compose up -d && docker compose logs -tf'
alias dcp='docker compose pull'
alias df='df -h' alias df='df -h'
alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches' alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches'
alias doas='doas -- ' alias doas='doas -- '

View file

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