Skip to content

Instantly share code, notes, and snippets.

@nbriz
Last active August 29, 2015 14:03
Show Gist options
  • Save nbriz/0eb08d7dcddf687ea749 to your computer and use it in GitHub Desktop.
Save nbriz/0eb08d7dcddf687ea749 to your computer and use it in GitHub Desktop.
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