Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Name: InstaG Purger
- // Author: RoarkeSoftware
- // Details: https://roarkesoftware.com/how-to-delete-multiple-instagram-photos/
- var i = 0; // set your counter to 0
- function instagramDeleter() { // create a deleter loop function
- setTimeout(function () { // call a 3s setTimeout when the loop is called
- document.querySelector('div.Igw0E.rBNOH.YBx95._4EzTm').click(); // selector to click on options menu
- setTimeout(function () { document.querySelector('button.aOOlW.-Cab_').click(); }, 2000) // selector to click delete option
- setTimeout(function () { document.querySelector('button.aOOlW.-Cab_').click(); }, 4000) // selector to click delete confirmation
- console.log (i+1 +" Deleted") // delete numbering to console
- i++; // increment the counter
- if (i < 5) { // if the counter < 5, call the loop function
- instagramDeleter(); // .. again which will trigger another
- } // .. setTimeout()
- }, 6000)
- }
- instagramDeleter();
Add Comment
Please, Sign In to add comment