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.
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.
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
Not Working Error below
Uncaught TypeError: null has no properties
setAriaLabelforButtonInFilter https://cdn.cookielaw.org/scripttemplates/202211.2.0/otBannerSdk.js:7
toggleV2Category https://cdn.cookielaw.org/scripttemplates/202211.2.0/otBannerSdk.js:7
toggleGroupORVendorHandler https://cdn.cookielaw.org/scripttemplates/202211.2.0/otBannerSdk.js:7
debugger eval code:12
debugger eval code:10
2 otBannerSdk.js:7:321773
setAriaLabelforButtonInFilter https://cdn.cookielaw.org/scripttemplates/202211.2.0/otBannerSdk.js:7
toggleV2Category https://cdn.cookielaw.org/scripttemplates/202211.2.0/otBannerSdk.js:7
self-hosted:1356
toggleGroupORVendorHandler https://cdn.cookielaw.org/scripttemplates/202211.2.0/otBannerSdk.js:7
debugger eval code:12
forEach self-hosted:203
debugger eval code:10
getEvalResult resource://devtools/server/actors/webconsole/eval-with-debugger.js:242
evalWithDebugger resource://devtools/server/actors/webconsole/eval-with-debugger.js:166
evaluateJS resource://devtools/server/actors/webconsole.js:1131
evaluateJSAsync resource://devtools/server/actors/webconsole.js:1022
makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103