Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var itemName = 'M4A1-S | Cyrex (Factory New)'; // nom de l'item
- var prctWanted = 99; // pourcentage de qualité minimum souhaité
- var found = false;
- $('.name').each(function()
- {
- if ($(this).find('b').text()==itemName)
- {
- var html = $(this).html();
- if (html.split('Condition: ').length>1)
- {
- var prct = html.split('Condition: ')[1].split('%')[0]*1;
- if (prct>=prctWanted)
- {
- found = prct;
- $(this).parent().css({'border':'5px solid red'});
- alert('Found '+found+'%!');
- }
- }
- }
- });
- if (!found)
- {
- location.href = $('.simplePagerNav').find('li').eq($('.simplePagerNav').find('li.currentPage').index()+1).find('a').attr('href');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement