Skip to content

Instantly share code, notes, and snippets.

@anlai
Created January 2, 2023 04:19
Show Gist options
  • Save anlai/8a31813328e5f0867c039edc98c3c011 to your computer and use it in GitHub Desktop.
Save anlai/8a31813328e5f0867c039edc98c3c011 to your computer and use it in GitHub Desktop.
Script that can be used in the browser console to add all the episodes on a Trakt season page to a list. (If used on a List page, it will remove all the episodes as well).
var lists = $('.trakt-icon-list-thick');
lists.each(function(){
this.click();
$(this).closest('a.list').siblings('.popover.with-list').find("li[data-list-id='{LIST_ID_HERE}']").click();
});
@anlai
Copy link
Author

anlai commented Jan 2, 2023

making public

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