Skip to content

Instantly share code, notes, and snippets.

@20jasper
Created March 20, 2024 04:04
Show Gist options
  • Save 20jasper/c556307ed06a1f3baf9c2878283d27c5 to your computer and use it in GitHub Desktop.
Save 20jasper/c556307ed06a1f3baf9c2878283d27c5 to your computer and use it in GitHub Desktop.
Remove from YouTube watch history
/*
Ever gotten tired of a genre of video, but youtube won't stop recommending it?
A friend watch 50 baby shark videos on your account?
This script will remove an entire page worth of YouTube history at once
Navigate to your history and search any term you'd like to remove, then run the script
`https://www.youtube.com/feed/history?query=${query}`
*/
document.querySelectorAll("[aria-label^='Remove from']").forEach(x => x.click());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment