Use the Tampermonkey Plugin: https://www.tampermonkey.net Firefox: https://addons.mozilla.org/de/firefox/addon/tampermonkey/
For the olat.vcrp.de page, on the first page visit the script will not work because you have to select your school. For the Password Prompt: A password manager (like LastPass or Bitwarden) is needed that auto-fills the password on page load.
On the OLAT front page
// ==UserScript==
// @name Auto-Click Olat Front Page