Created
June 26, 2020 10:55
-
-
Save ptyskju/ec90d1f1381ee7dfcf21b0e92a475040 to your computer and use it in GitHub Desktop.
Kod js do przedłużania i odświeżania wielu ogłoszeń na raz w OLX
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
$('.extendLink').each(function () { | |
if($(this).hasClass("refreshme")){ | |
$(this).click(); | |
} else if ($(this).hasClass("extendme")) { | |
var href = $(this).attr('href'); | |
$.get(href); | |
$(this).remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment