Last active
October 1, 2022 02:20
-
-
Save Ophuscado/46883c93ac090cd1402d8f81a7b81e69 to your computer and use it in GitHub Desktop.
Amazon automatisation for clicking on all items to delete watched history
This file contains hidden or 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
// The following script is meant to remove Prime Video history using the JavaScript console. | |
// Amazon should have a one-click solution... | |
async function main() { | |
// Loop over all items loaded in the page | |
var items = document.querySelectorAll("button._1ovr-S"); | |
for (var i = 0; i < items.length; i++) { | |
items[i].click(); | |
} | |
} | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment