Last active
August 29, 2015 14:03
-
-
Save nbriz/0eb08d7dcddf687ea749 to your computer and use it in GitHub Desktop.
confirmDiabox.js
This file contains 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
$('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