1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to mass delete Instagram comments by keyword?

Discussion in 'Instagram' started by Aurace, Jun 4, 2016.

  1. Aurace

    Aurace Junior Member

    Joined:
    Mar 31, 2016
    Messages:
    120
    Likes Received:
    60
    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?
     
  2. elavmunretea

    elavmunretea Elite Member

    Joined:
    May 14, 2016
    Messages:
    1,723
    Likes Received:
    2,308
    Home Page:
    Try set up and iMacro script, you can get really creative with these and tailor it to your needs
     
  3. Aurace

    Aurace Junior Member

    Joined:
    Mar 31, 2016
    Messages:
    120
    Likes Received:
    60
    I asked my friend who is experienced with it/coding and said I won't be able to do that in imacro.
     
  4. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    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.
     
    • Thanks Thanks x 2
    Last edited: Jun 4, 2016