Skip to content

Instantly share code, notes, and snippets.

@Hakier
Created December 8, 2021 18:01
Show Gist options
  • Save Hakier/902ca1b98a7c09d3742c83f657da3c8e to your computer and use it in GitHub Desktop.
Save Hakier/902ca1b98a7c09d3742c83f657da3c8e to your computer and use it in GitHub Desktop.
AliorBank-preventLogoutLoop.js
class ExchangeOfficeApp {
static refreshSession() {
[...document.querySelectorAll('.button')]
.filter(el => el.innerText === 'Odśwież sesję')
.forEach(el => el.click());
}
static preventLogoutLoop() {
ExchangeOfficeApp.refreshSession();
setTimeout(ExchangeOfficeApp.preventLogoutLoop, 15_000);
}
}
ExchangeOfficeApp.preventLogoutLoop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment