Skip to content

Instantly share code, notes, and snippets.

@florinbarbisch
Last active September 19, 2023 07:45
Show Gist options
  • Save florinbarbisch/4bcc52e9f359fea46bb2676974f16121 to your computer and use it in GitHub Desktop.
Save florinbarbisch/4bcc52e9f359fea46bb2676974f16121 to your computer and use it in GitHub Desktop.
Logs you in with EDU ID
// ==UserScript==
// @name Switch EDU ID Sign in
// @namespace https://florin.barbisch.ch/
// @version 0.1
// @description Logs you in with EDU ID
// @author Florin Barbisch
// @match *login.eduid.ch/idp/profile/SAML2/Redirect/SSO?execution=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=fhnw.login.eduid.ch
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementById("username").value="mail.used.to.sign.into.edu.id@example.com"
document.getElementById("login-button").click()
document.getElementById("password").value="secret"
document.getElementById("login-button").click()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment