There is a website that annoyingly doesn't save passwords.
I had to create this unsafe, unsecured script (which I run with Greasemonkey) to save the password:
// ==UserScript==
// @name example.comAutomation
// @include *example.com/*
// ==/UserScript==
if ( document.location.href == "https://subdomain.example.com/" ) {
document.querySelector("#x").value = "myEmail";
document.querySelector("#y").value = "myPassword";
document.querySelector("#z").click();
}
if ( document.location.href == "https://subdomain.example.com/overview" ) {
console.log(window.location.href);
document.location.href = "https://example.com/list"
}
Assuming I don't want to use an external passwords management software (PMS).
How could I secure the code above with hashing in Greasemonkey somehow?
Hardening the operating systems is always good, of course.