Skip to content

Instantly share code, notes, and snippets.

@davidroyer
Created September 3, 2021 17:39
Show Gist options
  • Save davidroyer/9e2690feba704a9ab062435178685f4f to your computer and use it in GitHub Desktop.
Save davidroyer/9e2690feba704a9ab062435178685f4f to your computer and use it in GitHub Desktop.
Starting point for downlaod dev video lessons
function goToNextLesson () {
const nextLesson = document.querySelector('.list-item.unlock.active ~ .list-item.unlock')
if (nextLesson) nextLesson.click()
}
function handleDownload() {
let downloadLink = document.querySelector('.lesson-aside a.button')
downloadLink.click()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment