Last active
August 20, 2019 13:15
-
-
Save mknepprath/1a53feb6c8482e502f010150a195f2dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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