How to mass delete Instagram comments by keyword?

Aurace

Junior Member
Joined
Mar 31, 2016
Messages
120
Reaction score
101
I want to be able to either automate or have a simple way of mass deleting comments on my pictures that contain certain keywords. Are there any tools you know of that make this easy to do manually fast or a tool that can automate the whole process?
 
Try set up and iMacro script, you can get really creative with these and tailor it to your needs
 
Try set up and iMacro script, you can get really creative with these and tailor it to your needs
I asked my friend who is experienced with it/coding and said I won't be able to do that in imacro.
 
I asked my friend who is experienced with it/coding and said I won't be able to do that in imacro.

Did this thing quickly, it should work.

1. Go to the photo page(keep in mind the script looks at the comments you see in the comment section, so if there's many, you have to load them up - "view all ... comments").
2. In Google Chrome, click Ctrl + Shift + C, this will open the console.
3. Paste this code and click Enter:
Code:
!function(){var t=prompt("What text should the comments contain?"),e=$("._4vltl"),n=0,i=1500,o=function(){var c=$(e[n]),a=!1;c.parent().find("span").text().indexOf(t)>-1&&(c.trigger("click"),$("._4y3e3._cpkei._q7p6k").trigger("click"),console.log(n+". Deleting a comment by "+c.parent().find("a").text()),a=!0),n++,a?n<e.length&&setTimeout(o,i):setTimeout(o,1)};setTimeout(o,500)}();
4. A small window should pop up and ask you what text you are looking for.
5. The script will now delete all comments that contain the text.

Currently, there's a 1.5 second(the "i=1500", you can change it to, let's say, 5 seconds, then "i=5000") delay between each deletion.

EDIT: Fixed something in the code.
 
Last edited:
Back
Top