Skip to content

Instantly share code, notes, and snippets.

@tryshchenko
Created February 18, 2020 14:30
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 tryshchenko/c7f05c9650b65a25448e6c7df70f9265 to your computer and use it in GitHub Desktop.
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
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