Created
February 18, 2020 14:30
-
-
Save tryshchenko/c7f05c9650b65a25448e6c7df70f9265 to your computer and use it in GitHub Desktop.
Uncheck all weekends on ov-chipkaart website. It doesn't count public holidays
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
Array.from(document.querySelectorAll('.known-transaction')) | |
.filter(el => { | |
const html = el.innerHTML || ''; | |
return (html.includes('Sunday') || html.includes('Saturday')) && html.includes('back from boarding rate'); | |
}) | |
.forEach(el => el.querySelector('input').click()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment