Last active
February 12, 2020 17:25
-
-
Save fatihtoprak/2655bb0aba4e39103535251a7994861d to your computer and use it in GitHub Desktop.
Delete all items, in https://prntscr.com/gallery.html history page.
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
| var intervalHandle = setInterval(function() { | |
| var i = 0; | |
| $('.js-delete').each(function() { | |
| if (i > 5) { | |
| return false; | |
| } | |
| $(this).click(); | |
| if ($(this).parent().css('display') == 'block') { | |
| i++; | |
| } | |
| }); | |
| // Confirm delete forever | |
| $('.js-delete-forever').each(function() { | |
| if ($(this).parent().css('display') == 'block') { | |
| $(this).click(); | |
| } | |
| }); | |
| if ($('.js-delete').lengh == 0) { | |
| clearInterval(intervalHandle); | |
| } | |
| }, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment