Skip to main content
added 13 characters in body
Source Link

Bulk/Auto Delete youtube comments through the browser console https://myactivity.google.com/page?&page=youtube_comments

the code:

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);

Here's how it works if anyone cares

c=[];//gonna be used to store the buttons

for(i in e=document.getElementsByTagName('path')){

    //this grabs the grandparent element of <path d="6.41z"> tags because theres a million ways to get the "delete comment" buttons and I was bored
    typeof(x = e[i])==='object'? x.getAttribute('d').includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}

//this regulates how fast the comments get deleted. if you try to delete too many at once, only so many will actually delete before you have to reload the page and do it again
setInterval(()=>{
    c[0].click();c.splice(0, 1);
}, 3000);

Google throttles how fast you can delete the comments since one of the updates a while ago so it's set to delete 1 comment per 3 seconds.

Bulk/Auto Delete youtube comments through the browser console https://myactivity.google.com/page?&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);

Here's how it works if anyone cares

c=[];//gonna be used to store the buttons

for(i in e=document.getElementsByTagName('path')){

    //this grabs the grandparent element of <path d="6.41z"> tags because theres a million ways to get the "delete comment" buttons and I was bored
    typeof(x = e[i])==='object'? x.getAttribute('d').includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}

//this regulates how fast the comments get deleted. if you try to delete too many at once, only so many will actually delete before you have to reload the page and do it again
setInterval(()=>{
    c[0].click();c.splice(0, 1);
}, 3000);

Google throttles how fast you can delete the comments since one of the updates a while ago so it's set to delete 1 comment per 3 seconds.

Bulk/Auto Delete youtube comments through the browser console https://myactivity.google.com/page?&page=youtube_comments

the code:

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);

Here's how it works if anyone cares

c=[];//gonna be used to store the buttons

for(i in e=document.getElementsByTagName('path')){

    //this grabs the grandparent element of <path d="6.41z"> tags because theres a million ways to get the "delete comment" buttons and I was bored
    typeof(x = e[i])==='object'? x.getAttribute('d').includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}

//this regulates how fast the comments get deleted. if you try to delete too many at once, only so many will actually delete before you have to reload the page and do it again
setInterval(()=>{
    c[0].click();c.splice(0, 1);
}, 3000);

Google throttles how fast you can delete the comments since one of the updates a while ago so it's set to delete 1 comment per 3 seconds.

I decided to update this script. Working as of 10/12/22
Source Link

I have a solution that does not require you to download anything.Bulk/Auto Delete youtube comments through the browser console It's kind of hacky but I mean anyone can do it.

So to delete all of your Youtube comments automatically, go to your YouTube Comment Historyhttps://myactivity.google.com/page?&page=youtube_comments

First, I'd recommend deleting one comment and disabling the confirmation warning.

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);

Then, open the console in your browser(in chrome press ctrl+shift+j), then paste in this code :Here's how it works if anyone cares

num=6
c=[];//gonna be used to store the buttons

for(i=0;i<20;i++i in e=document.getElementsByTagName('path')){ 

  y  //this grabs the grandparent element of <path d="6.41z"> tags because theres a million ways to get the "delete comment" buttons and I was bored
    typeof(x = documente[i])==='object'? x.getElementsByClassNamegetAttribute('VfPpkd-rymPhb-ibnC6b''d');.includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}

//this regulates y[num]how fast the comments get deleted.click if you try to delete too many at once, only so many will actually delete before you have to reload the page and do it again
setInterval(();=>{
  num=num+2;  c[0].click();c.splice(0, 1);
}, 3000);

Then press Enter.

To explain this code: it grabs the buttons on the page, then grabs the first delete button and clicks it, then goes through that cycle 20 times. So ifGoogle throttles how fast you want tocan delete more than 20 comments at once you have to change 20 to a higher number. Only so manythe comments appear onsince one of the page at onceupdates a while ago so I justit's set it to 20delete 1 comment per 3 seconds.

Hopefully this lightweight solution will help someone out and save a lot of time and clicks

I have a solution that does not require you to download anything. It's kind of hacky but I mean anyone can do it.

So to delete all of your Youtube comments automatically, go to your YouTube Comment History

First, I'd recommend deleting one comment and disabling the confirmation warning.

Then, open the console in your browser(in chrome press ctrl+shift+j), then paste in this code :

num=6
  for(i=0;i<20;i++){
  y = document.getElementsByClassName('VfPpkd-rymPhb-ibnC6b');
  y[num].click();
  num=num+2;
}

Then press Enter.

To explain this code: it grabs the buttons on the page, then grabs the first delete button and clicks it, then goes through that cycle 20 times. So if you want to delete more than 20 comments at once you have to change 20 to a higher number. Only so many comments appear on the page at once so I just set it to 20.

Hopefully this lightweight solution will help someone out and save a lot of time and clicks

Bulk/Auto Delete youtube comments through the browser console https://myactivity.google.com/page?&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);

Here's how it works if anyone cares

c=[];//gonna be used to store the buttons

for(i in e=document.getElementsByTagName('path')){ 

    //this grabs the grandparent element of <path d="6.41z"> tags because theres a million ways to get the "delete comment" buttons and I was bored
    typeof(x = e[i])==='object'? x.getAttribute('d').includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}

//this regulates how fast the comments get deleted. if you try to delete too many at once, only so many will actually delete before you have to reload the page and do it again
setInterval(()=>{
    c[0].click();c.splice(0, 1);
}, 3000);

Google throttles how fast you can delete the comments since one of the updates a while ago so it's set to delete 1 comment per 3 seconds.

Source Link

I have a solution that does not require you to download anything. It's kind of hacky but I mean anyone can do it.

So to delete all of your Youtube comments automatically, go to your YouTube Comment History

First, I'd recommend deleting one comment and disabling the confirmation warning.

Then, open the console in your browser(in chrome press ctrl+shift+j), then paste in this code :

num=6
  for(i=0;i<20;i++){
  y = document.getElementsByClassName('VfPpkd-rymPhb-ibnC6b');
  y[num].click();
  num=num+2;
}

Then press Enter.

To explain this code: it grabs the buttons on the page, then grabs the first delete button and clicks it, then goes through that cycle 20 times. So if you want to delete more than 20 comments at once you have to change 20 to a higher number. Only so many comments appear on the page at once so I just set it to 20.

Hopefully this lightweight solution will help someone out and save a lot of time and clicks