Created
December 25, 2021 13:39
-
-
Save shivamsn97/82d4c38490d7ec9daa1854ce393d42bd to your computer and use it in GitHub Desktop.
Udemy script to mark whole course as complete in one go!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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