Skip to content

Instantly share code, notes, and snippets.

@mknepprath
Last active August 20, 2019 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mknepprath/1a53feb6c8482e502f010150a195f2dc to your computer and use it in GitHub Desktop.
Save mknepprath/1a53feb6c8482e502f010150a195f2dc to your computer and use it in GitHub Desktop.
// Run per page. You will have to hover over some posters before running to ensure `.icon-watched` is rendered.
const watchedActionButtons = [...document.querySelectorAll(".icon-watched")]
for (watchedActionButtonIndex = 0; watchedActionButtonIndex < watchedActionButtons.length; watchedActionButtonIndex++) {
watchedActionButtons[watchedActionButtonIndex].click()
console.log("Deleted movie at index #" + watchedActionButtonIndex + ".")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment