Skip to content

Instantly share code, notes, and snippets.

@lordgraysith
Last active January 6, 2019 05:57
Show Gist options
  • Save lordgraysith/609a1f2f8fadec8505fb94063d054536 to your computer and use it in GitHub Desktop.
Save lordgraysith/609a1f2f8fadec8505fb94063d054536 to your computer and use it in GitHub Desktop.
function openTransactions() {
const drawers = document.getElementsByClassName('openDrawerButton')
const drawersArray = [].slice.call(drawers)
const recursivelyOpen = function(index) {
if (index < drawersArray.length) {
drawersArray[index].click()
setTimeout(recursivelyOpen, 5000, index + 1)
}
}
recursivelyOpen(1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment