Skip to content

Instantly share code, notes, and snippets.

@malmeloo
Created March 24, 2023 21:04
Show Gist options
  • Select an option

  • Save malmeloo/224bf6a01f483ec1c8ec40fe957828d0 to your computer and use it in GitHub Desktop.

Select an option

Save malmeloo/224bf6a01f483ec1c8ec40fe957828d0 to your computer and use it in GitHub Desktop.
Deleting entire YouTube comment history

Deleting your entire YouTube comment history

  1. Go to the YouTube comment myactivity page
  2. Open devtools and go to the console (Ctrl + Alt + I)
  3. Paste the following code and press enter:
Array.from(document.querySelectorAll("[data-show-delete-individual]")).slice(1).forEach(e => e.querySelector("button").click())
  1. Done! You might have to wait for a bit, as the page is quite slow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment