Created
October 16, 2025 15:34
-
-
Save frereit/5cff55e4711dfd37f80efd513f2eba13 to your computer and use it in GitHub Desktop.
TUDa Informatik Moodle Auto-Login Redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name TUDa Informatik Moodle Auto-Login Redirect | |
| // @namespace https://moodle.informatik.tu-darmstadt.de/ | |
| // @version 2025-10-16 | |
| // @description Automatically redirect to login when logged out | |
| // @author frereit | |
| // @match https://moodle.informatik.tu-darmstadt.de/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=tu-darmstadt.de | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| let elem = document.querySelector("a[href='https://moodle.informatik.tu-darmstadt.de/login/index.php']"); | |
| if (elem) { window.location = 'https://moodle.informatik.tu-darmstadt.de/login/index.php?authCAS=CAS'; }; | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment