Skip to content

Instantly share code, notes, and snippets.

@malte-j
Created April 26, 2023 10:16
Show Gist options
  • Save malte-j/43af4e143afe4b89b9f178ea3055d293 to your computer and use it in GitHub Desktop.
Save malte-j/43af4e143afe4b89b9f178ea3055d293 to your computer and use it in GitHub Desktop.
Automatically clicks the SSO login button in moodle.
// ==UserScript==
// @name HPI Moodle Autologin
// @namespace https://malts.me/
// @version 1.0
// @description Automatically clicks the SSO login button in moodle.
// @author Malte Janßen ([email protected])
// @match https://moodle.hpi.de/login/index.php
// @icon https://moodle.hpi.de/theme/image.php/boost/theme/1678719034/favicon
// @grant none
// ==/UserScript==
(function() {
'use strict';
const ssoBtn = document.querySelector('[title="HPI OpenID Connect"]')
ssoBtn?.click();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment