Skip to content

Instantly share code, notes, and snippets.

@gorkamu
Last active April 7, 2019 18:25
Show Gist options
  • Save gorkamu/68180ccaed4efc74a33c896070d9e8b5 to your computer and use it in GitHub Desktop.
Save gorkamu/68180ccaed4efc74a33c896070d9e8b5 to your computer and use it in GitHub Desktop.
test
jQuery(document).ready(function(){
console.log("Start");
if(jQuery("table.variations").length){
if(jQuery("table.variations tr td.value div:nth-child(2) span:nth-child(1)").length > 0) {
setTimeout(function(){
eval(jQuery(".tawcvs-swatches").find("span").first().trigger("click"));
}, 1500);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment