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== |
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 spaces.fhnw.ch redirect to Switch AII login page | |
// @namespace https://florin.barbisch.ch/ | |
// @version 0.1 | |
// @description Automatically clicks the "Einloggen mit Switch AII" Button | |
// @author Florin Barbisch | |
// @match https://spaces.technik.fhnw.ch/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=spaces.technik.fhnw.ch | |
// @grant none | |
// ==/UserScript== |
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
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.nio.channels.Channels; | |
import java.util.regex.MatchResult; | |
import java.util.regex.Pattern; | |
import java.util.stream.Collectors; | |
public class AerialScreensaverDownloader { |