Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
confirmDiabox.js
$('button').each(function( i ) {
if( $(this).html() == 'Continue'){ $(this).click(); }
if( $(this).html() == 'Confirm'){ $(this).click(); }
if( $(this).html() == 'Delete Post'){ $(this).click(); }
if( $(this).html() == 'Remove Tag'){ $(this).click(); }
if( $(this).html() == 'Remove Search'){ $(this).click(); }
if( $(this).html() == 'Okay'){ $(this).click(); }
});
$('span').each(function( i ) {
if( $(this).html() == 'Close'){ $(this).click(); }
});
$( "input[value|='Delete']" ).click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment