Skip to content

Instantly share code, notes, and snippets.

@smithj33
Created May 26, 2024 16:18
Show Gist options
  • Save smithj33/55257dd4db14a987a9f2ca0e993eeefb to your computer and use it in GitHub Desktop.
Save smithj33/55257dd4db14a987a9f2ca0e993eeefb to your computer and use it in GitHub Desktop.
This is a script from a now deleted Reddit user. It works as of 05/26/2024. You paste it into the web console in your browser. It will delete one comment every 3 seconds due to limitations by Google.
# https://myactivity.google.com/page?hl=en&utm_medium=web&utm_source=youtube&page=youtube_comments
c=[];
for(i in e=document.getElementsByTagName('path')){
typeof(x = e[i])==='object'? x.getAttribute('d').includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}
setInterval(()=>{
c[0].click();c.splice(0, 1)
}, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment