Skip to content

Commit

Permalink
Skip marketplace listings
Browse files Browse the repository at this point in the history
  • Loading branch information
Preport committed May 1, 2022
1 parent 61dc9aa commit 3de18b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ class getListings {
.map(sp => item.attribs['data-part_name_' + sp])
.filter(sp => sp);
const priceStrings = (item.attribs['data-listing_price'] as string).split(' ');

if (priceStrings.length === 1) {
//marketplace listing just skip it
return;
}

const isK = priceStrings[1].startsWith('key');
const intent = item.attribs['data-listing_intent'];
const button = $('.btn:not(.btn-warning)', body).get(0);
Expand Down

0 comments on commit 3de18b6

Please sign in to comment.