Last active
March 7, 2016 11:39
-
-
Save Balamir/0d32e8251a0f49cc5b36 to your computer and use it in GitHub Desktop.
Bulk delete in-app purchase products on iTunes Connect
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
| $('.pane-layout-content-header #textDiv').append($('<li id="del-script">').append($('<a class="js-nav">"').text('...'))); | |
| $('.itc-checkbox').parent().removeClass('ng-hide'); | |
| window.delscrpt = setInterval(function() { | |
| $('.itc-checkbox input:checked').parents('tr').find('a.deleteIcon').each(function(){ $(this).click(); return false;}); | |
| var count = $('.itc-checkbox input:checked').parents('tr').find('a.deleteIcon').length; | |
| if (count < 3) { | |
| $('#del-script a').text('Del Done.'); | |
| clearInterval(window.delscrpt); | |
| return; | |
| } | |
| var randIdx = Math.floor((Math.random()*count)+1); | |
| $('#del-script a').text('Del ' + randIdx + '/' + count); | |
| $('.itc-checkbox input:checked').parents('tr').find('a.deleteIcon').eq(randIdx).click(); | |
| $('div.ng-modal[show="tempPageContent.showConfirmDeleteAddon"] .modal-buttons .primary').each(function() { $(this).click(); }); | |
| }, 180000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment