Last active
November 23, 2020 18:02
-
-
Save nzbr/61003349a2b5a6054b95065b3ad4cfb0 to your computer and use it in GitHub Desktop.
Redirect to login page when not logged in on moodle.tu-dortmund.de
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 Moodle Login | |
// @namespace https://nzbr.de | |
// @version 0.1 | |
// @description Redirect to login page when not logged in on moodle.tu-dortmund.de | |
// @author nzbr | |
// @match https://moodle.tu-dortmund.de/ | |
// @match https://moodle.tu-dortmund.de/login/index.php | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (document.getElementById("action-menu-1") === null) { | |
window.location.href='https://sso.itmc.tu-dortmund.de/openam/UI/Login?goto=' + window.location.href; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment