Auto-Open Login Page

Aus SDQ-Wiki

The wikis and ILIAS have the property to log you out on a regular basis and at the same time requiring a lot of clicks to log in.

The following Greasemonkey-scripts automatically click the log-in buttons, especially the button/link to log-in with a KIT-Account. Therefore, you will be redirected to Shibboleth and, when you are already logged in with Shibboleth, autmotaically logged in (or need to log-in with your credentials for Shibboleth)

Wiki-Login:

// ==UserScript==
// @name     Wiki: Auto-Click to Login with KIT-Account
// @version  1
// @grant    none
// @include  https://sdq.kastel.kit.edu/mediawiki-sdq-intern/index.php?title=Spezial:Anmelden*
// @include  https://sdq.kastel.kit.edu/mediawiki-sdq-extern/index.php?title=Spezial:Anmelden*
// @run-at 	 document-end
// ==/UserScript==
document.getElementById("mw-input-pluggableauthlogin0").click();

ILIAS Go to Log-in Page

// ==UserScript==
// @name     ILIAS auto-open Login
// @version  1
// @grant    none
// @include  https://ilias.studium.kit.edu/ilias.php*
// @run-at 	 document-end
// ==/UserScript==
var links = document.getElementsByTagName("a");
for (var i=0; i<links.length; i++) {
  var lnk = links[i].href;
  if (lnk.startsWith("https://ilias.studium.kit.edu/login.php")) {
    window.open(lnk,"_self");
  }
}

ILIAS LogIn with KIT-Account

// ==UserScript==
// @name     Auto-Click for ILIAS-Login with KIT-Account
// @version  1
// @grant    none
// @include  https://ilias.studium.kit.edu/login.php*
// @run-at 	 document-end
// ==/UserScript==
document.getElementById("button_shib_login").click();