Last active
December 1, 2020 19:58
-
-
Save Asbra/278544d7348affb9f76952e5b57a0c65 to your computer and use it in GitHub Desktop.
Imgur delete all images in current album
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deleteFromAccount = function(deletehash) { | |
$.ajax({ | |
method: "POST", | |
url: "/delete/" + deletehash, | |
data: { | |
confirm: !0 | |
}, | |
displayGenericError: !1, | |
error: function() { | |
console.log("There was an error deleting your image", "error-msg") | |
} | |
}) | |
} | |
for (var i = 0; i < window.runSlots.item.album_images.images.length; i++) { | |
deleteFromAccount(window.runSlots.item.album_images.images[i].deletehash); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment