Last active
September 19, 2023 07:45
-
-
Save florinbarbisch/4bcc52e9f359fea46bb2676974f16121 to your computer and use it in GitHub Desktop.
Logs you in with EDU ID
This file contains 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 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