here I am complaining because the username and password for logging in to a website for my work are very long and complicated. I want to make or make it easier to log in on this website via a shortcut, please help to create an auto login script and auto fill username and password
Is the save password feature not working on your browser? I would go there first. You could check in your browser’s settings if you did not accidentally say “never save password” for that url specifically.
If not… Are you allowed to add browser extensions to your browser? I am using tampermonkey to autofill my login field and focus on my password field because autosave password doesn’t work on that page. Here’s what my script content looks like:
here I use an iPhone IOS 16 to log in to the website, for shortcuts I use scriptable and to open the website I use the Safari app. Is there a solution for this?
from the script that I made, the drawback is that when this script is run, the username and password run smoothly, but this script has no response to login, is there an error in the script?
let user = ‘67433344566777’;
let pass = ‘532799888’;
let user = '67433344566777';
let pass = '532799888';
let v = new WebView();
await v.loadURL('https://e-absensi.rsudrsoetomo.jatimprov.go.id/');
let js = `
let user = '${user}';
let pass = '${pass}';
document.getElementById('nomorindukpegawai').value = user;
document.getElementById('LoginForm_password').value = pass;
document.getElementById('ap-claim').value = user;
document.getElementById('ap-credential-autofill-hint').value = user;
document.getElementById('ap-credential-autofill-hint').dataset.claim = user;
document.getElementById('login-button').click();
`;
v.present();
await v.waitForLoad();
const result = await v.evaluateJavaScript(js);
// use result in the widget
Alternative (it’s uglier, but doesn’t use backticks):
let v = new WebView();
await v.loadURL('https://e-absensi.rsudrsoetomo.jatimprov.go.id/');
let js = 'let user = "67433344566777"; let pass = "532799888"; document.getElementById("nomorindukpegawai").value = user; document.getElementById("LoginForm_password").value = pass; document.getElementById("ap-claim").value = user; document.getElementById("ap-credential-autofill-hint").value = user; document.getElementById("ap-credential-autofill-hint").dataset.claim = user; document.getElementById("login-button").click();';
v.present();
await v.waitForLoad();
const result = await v.evaluateJavaScript(js);
// use result in the widget