Skip to content

Instantly share code, notes, and snippets.

@T0fuZ
Forked from AstralJohn/Reset Udemy Progress.md
Created August 18, 2021 11:08
Show Gist options
  • Select an option

  • Save T0fuZ/44a118e4ff66c2e3c83d42969027f6c0 to your computer and use it in GitHub Desktop.

Select an option

Save T0fuZ/44a118e4ff66c2e3c83d42969027f6c0 to your computer and use it in GitHub Desktop.
Reset Udemy Progress

Reset Udemy Progress

Step 1. Go to Udemy course in browser

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

Step 2. Open browser console

You can do this with ctrl+shift+i and then clicking on the console tab

Step 3. Run code in browser console

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

// Stores all unexpanded section headers, and clicks on the unexpanded section headers to expand them
const sectionEl = document.querySelectorAll("div[aria-expanded='false']");
sectionEl.forEach((section) => section.click());

// Stores all checkboxes on the page, and clicks on any checkboxes on that currently checked
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