Last active
May 25, 2017 23:36
-
-
Save bernatfortet/ff5b2e5ca640433c45f83dd241d7e291 to your computer and use it in GitHub Desktop.
Parse grub Market deals
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
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