Skip to content

Instantly share code, notes, and snippets.

@shivamsn97
Created December 25, 2021 13:39
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 shivamsn97/82d4c38490d7ec9daa1854ce393d42bd to your computer and use it in GitHub Desktop.
Save shivamsn97/82d4c38490d7ec9daa1854ce393d42bd to your computer and use it in GitHub Desktop.
Udemy script to mark whole course as complete in one go!
// Copy paste this code in developer console after opening your desired course
// **NOTE** Keep the "Course Content" Section Open
windows = document.getElementsByClassName("js-panel-toggler")
for(let x of windows) {
if(x.attributes['aria-expanded'].value.localeCompare("false") == 0) {
x.click()
}
}
ticks = document.getElementsByClassName("curriculum-item-link--progress-toggle--1CMcg")
for(let x of ticks) {
if(!document.getElementById(x.attributes['for'].value).checked) {
x.click()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment