Skip to content
Snippets Groups Projects
Unverified Commit 6d429ae6 authored by Jan's avatar Jan Committed by GitHub
Browse files

Changed timed wait to wait for full document load

@jmir1's Idee war gut, aber ~Lillis Arme waren zu kurz~ ich denke so ist es noch "sicherer".
parent 82291a07
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
// @description Automatically logs you in to the Uni Hamburg Moodle, given automated password filling.
// @description:de Loggt Dich automatisch in das Moodle der Uni Hamburg ein, gegeben, dass die Login-Daten automatisch ausgefüllt werden.
// @version 1.0.2
// @version 1.0.3
// @copyright 2023+, Jan G. (Rsge)
// @license Mozilla Public License 2.0
// @icon https://lernen.min.uni-hamburg.de/theme/image.php/uhh/theme/1698645195/favicon
......@@ -26,6 +26,7 @@
(function() {
'use strict';
window.addEventListener('load', function() {
let firstLoginButtonElements = document.getElementsByClassName("btn login-identityprovider-btn btn-primary btn-lg btn-block");
if (firstLoginButtonElements.length > 0) {
firstLoginButtonElements[0].click();
......@@ -33,6 +34,7 @@
}
let secondLoginButtonElements = document.getElementsByClassName("form-element form-button");
if (secondLoginButtonElements.length > 0) {
setTimeout(function() { secondLoginButtonElements[0].click(); }, 100);
secondLoginButtonElements[0].click();
}
}, false);
})();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment