Skip to content

Instantly share code, notes, and snippets.

@marcosnakamine
Created October 24, 2017 13:28
Embed
What would you like to do?
jQuery - WP Smush auto click
setInterval(function(){
botao = jQuery('#wp-smush-bulk-wrap-box > div.box-container > div.wp-smush-bulk-wrapper > button');
if( botao.attr('disabled') != 'disabled' ) {
botao.trigger('click');
}
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment