Created
January 28, 2021 07:17
-
-
Save todvora/78dfd53cf55ab8c8e5524cb0e95a230c to your computer and use it in GitHub Desktop.
Open login popup automatically on tickets.oebb.at
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 ÖBB Login trigger | |
// @version 1 | |
// @match https://tickets.oebb.at/* | |
// ==/UserScript== | |
const timer = setInterval(function(){ | |
const loginLink = document.querySelector('div.login-body a'); | |
if(loginLink !== null) { | |
loginLink.click(); | |
clearInterval(timer); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment