jQuery - WP Smush auto click
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
setInterval(function(){ | |
botao = jQuery('#smush-box-meta-boxes-bulk > div.sui-box-body > div.wp-smush-bulk-wrapper > button'); | |
if( botao.attr('disabled') != 'disabled' ) { | |
botao.trigger('click'); | |
} | |
}, 1000); |
Sps113
commented
Jul 15, 2021
•
setInterval(function(){
botao = jQuery('a.wp-smush-all > i');
if( botao.attr('disabled') != 'disabled' ) {
botao.trigger('click');
}
}, 1000);
Is this the new format?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment