Skip to content

Instantly share code, notes, and snippets.

@bernatfortet
Last active May 25, 2017 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernatfortet/ff5b2e5ca640433c45f83dd241d7e291 to your computer and use it in GitHub Desktop.
Save bernatfortet/ff5b2e5ca640433c45f83dd241d7e291 to your computer and use it in GitHub Desktop.
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