Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Uni-Hamburg-Auto-Logins
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gohrbandt, Jan
Uni-Hamburg-Auto-Logins
Commits
7a41d5af
Unverified
Commit
7a41d5af
authored
1 year ago
by
jmir1
Browse files
Options
Downloads
Patches
Plain Diff
fix: Prevent issues with other scripts and wait for autofill
parent
6d429ae6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Uni Hamburg Moodle Auto Login.user.js
+6
-3
6 additions, 3 deletions
Uni Hamburg Moodle Auto Login.user.js
with
6 additions
and
3 deletions
Uni Hamburg Moodle Auto Login.user.js
+
6
−
3
View file @
7a41d5af
...
...
@@ -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.
3
// @version 1.0.
4
// @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
...
...
@@ -19,7 +19,7 @@
// @match https://lernen.min.uni-hamburg.de/login/*
// @match https://login.uni-hamburg.de/idp/*
// @run-at document-
idle
// @run-at document-
end
// @grant none
// ==/UserScript==
...
...
@@ -34,7 +34,10 @@
}
let
secondLoginButtonElements
=
document
.
getElementsByClassName
(
"
form-element form-button
"
);
if
(
secondLoginButtonElements
.
length
>
0
)
{
let
passwordInput
=
document
.
getElementById
(
"
password
"
);
passwordInput
.
addEventListener
(
"
input
"
,
function
()
{
secondLoginButtonElements
[
0
].
click
();
});
}
},
false
);
})();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment