-
-
Save eduwass/4d41cccb09d553f70cf9b3759ed8d731 to your computer and use it in GitHub Desktop.
jQuery - WP Smush auto click
This file contains hidden or 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