Skip to content

Instantly share code, notes, and snippets.

@todvora
Created January 28, 2021 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todvora/78dfd53cf55ab8c8e5524cb0e95a230c to your computer and use it in GitHub Desktop.
Save todvora/78dfd53cf55ab8c8e5524cb0e95a230c to your computer and use it in GitHub Desktop.
Open login popup automatically on tickets.oebb.at
// ==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