Skip to content

Instantly share code, notes, and snippets.

@bernatfortet bernatfortet/grubMarket.js
Last active May 25, 2017

Embed
What would you like to do?
Parse grub Market deals
javascript:(function(){
$('.cards__item').each( function( item ){
console.log('item', $(this) );
var disccountStr = $(this).find('.pct-off').text();
var disccount = parseInt( disccountStr.substring(5, disccountStr.length-1) );
if( disccount < 50 ){
$(this).remove();
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.