Skip to content

Instantly share code, notes, and snippets.

@ayuthmang
Last active April 5, 2023 10:48
Show Gist options
  • Save ayuthmang/315b363d4f2eb940daf9d1be7e5659d8 to your computer and use it in GitHub Desktop.
Save ayuthmang/315b363d4f2eb940daf9d1be7e5659d8 to your computer and use it in GitHub Desktop.
Script for Archive All Courses Udemy

About

Video

Tried to archiving courses that you don't want? Now I have about 26 pages, each page has 9 courses that I claim for free. Right now I don't want it. Hence, I made script that use to archive courses just single copy and paste.

How to use

  1. Open chrome devtools on mac using Cmd + Option + I.
  2. Select 'Console' tab and paste the script below.
$(`.card-wrapper div.card.card--learning a[href="javascript:void(0)"]`).trigger('click')
  1. Enjoy your life.
Copy link

ghost commented Mar 11, 2023

It's not working as of now. The console throws an error
TypeError $(...) is null

@ayuthmang
Copy link
Author

It might be jQuery has been deprecated on their site, I think let's try to use querySelector instead.

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