Skip to content

Instantly share code, notes, and snippets.

@JohnDinhDev
Last active July 21, 2024 17:38
Show Gist options
  • Save JohnDinhDev/330df494981ca97c92a95b65e28967d3 to your computer and use it in GitHub Desktop.
Save JohnDinhDev/330df494981ca97c92a95b65e28967d3 to your computer and use it in GitHub Desktop.
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 06/18/2024

Step 1. Go to the Udemy course in your browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

For FireFox, use ctrl+shift+k you might need to type in "allow pasting" if it is your first time pasting in JS code in the console, the console will give you instructions on this if so.

Step 3. Run code in browser console

Copy and paste this code in the console Hit the enter key to run

// Expands all sections to make every checkbox visible
const sectionEl = document.querySelectorAll("span[data-checked=''] + div");
sectionEl.forEach((section) => {
	section.click()
});

// Unchecks all checkboxes
const checkboxes = document.querySelectorAll("input[type='checkbox']");
checkboxes.forEach((checkbox) => {
  if(checkbox.checked) {
    checkbox.click();
  }
})

Note that your Udemy progress % might not say 0% right away, this is on Udemy's end, but the % should update as you go through the course again.

Thank you for taking the time to read through this, if you have any problems please leave a comment. To show your appreciation, gift me a coffee ☺ https://ko-fi.com/johndinhdev

@ekrishnas
Copy link

Awesome thank you.

@596050
Copy link

596050 commented Apr 14, 2024

To open all sections:

$x("/html/body/div[1]/div[1]/div/div/main/div/div[2]/section/div[2]/div/div/div/div[1]").map(el => el.click())

To uncheck all checkboxes:

const checkboxes = document.querySelectorAll("input[type='checkbox']");
checkboxes.forEach((checkbox) => {
if(checkbox.checked) {
checkbox.click();}})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment