Skip to content

Instantly share code, notes, and snippets.

@AstralJohn
Last active October 1, 2024 15:36
Show Gist options
  • Save AstralJohn/330df494981ca97c92a95b65e28967d3 to your computer and use it in GitHub Desktop.
Save AstralJohn/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

@ChristiaanGitHubber
Copy link

September 7th 2024
Worked for me ty :)

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