ganger

InstaG Post Deleter

Apr 13th, 2020
223
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Name: InstaG Purger
  2. // Author: RoarkeSoftware
  3. // Details: https://roarkesoftware.com/how-to-delete-multiple-instagram-photos/
  4.  
  5. var i = 0; // set your counter to 0
  6. function instagramDeleter() { // create a deleter loop function
  7. setTimeout(function () { // call a 3s setTimeout when the loop is called
  8. document.querySelector('div.Igw0E.rBNOH.YBx95._4EzTm').click(); // selector to click on options menu
  9. setTimeout(function () { document.querySelector('button.aOOlW.-Cab_').click(); }, 2000) // selector to click delete option
  10. setTimeout(function () { document.querySelector('button.aOOlW.-Cab_').click(); }, 4000) // selector to click delete confirmation
  11. console.log (i+1 +" Deleted") // delete numbering to console
  12. i++; // increment the counter
  13. if (i < 5) { // if the counter < 5, call the loop function
  14. instagramDeleter(); // .. again which will trigger another
  15. } // .. setTimeout()
  16. }, 6000)
  17. }
  18. instagramDeleter();
RAW Paste Data