Skip to content

Instantly share code, notes, and snippets.

@Ophuscado
Last active October 1, 2022 02:20
Show Gist options
  • Save Ophuscado/46883c93ac090cd1402d8f81a7b81e69 to your computer and use it in GitHub Desktop.
Save Ophuscado/46883c93ac090cd1402d8f81a7b81e69 to your computer and use it in GitHub Desktop.
Amazon automatisation for clicking on all items to delete watched history
// 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