Skip to content

Instantly share code, notes, and snippets.

@sophiabrandt
Created December 11, 2020 07:23
Show Gist options
  • Save sophiabrandt/bfb8e43e2772f716465e3bf359072228 to your computer and use it in GitHub Desktop.
Save sophiabrandt/bfb8e43e2772f716465e3bf359072228 to your computer and use it in GitHub Desktop.
/* this script marks each lecture as completed
paste into browser console (F12) */
var timer = window.setInterval(function() {
var videoCompleteButton = document.querySelector('.complete')
if (videoCompleteButton) {
videoCompleteButton.click()
} else {
window.clearInterval(timer)
}
}, 5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment