Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tentaComprar(url) {
- jQuery.ajax(url,
- {
- success: function (data) {
- if(jQuery(data).find(".box_botao-cm").length){
- jQuery(".box_botao-cm").closest("a").click()
- } else {
- console.log("ainda não ativou");
- setTimeout(tentaComprar(url), 5000);
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement