From baf9b3921dfecc7226caebecb8dff0b2bac7d09d Mon Sep 17 00:00:00 2001 From: Abhorrent_Anger Date: Thu, 21 Mar 2024 16:14:21 +0200 Subject: [PATCH] Key price check fix --- script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index c9b75d8..7445b22 100644 --- a/script.js +++ b/script.js @@ -109,7 +109,10 @@ function handleHTML(steam_id, steam_name, html_string) { inventory.append('

' + steam_name + '

'); decaled_items.each(function () { var parent = $(this).parent(); - if (parent.hasClass('q-440-11') || parent.hasClass('nocraft') || parent.attr('data-listing_price').includes('keys')) { + var is_strange = parent.hasClass('q-440-11'); + var is_uncraftable = parent.hasClass('nocraft'); + var is_price_in_keys = $('.bottom-right span', parent).text().includes('key'); + if (is_strange || is_uncraftable || is_price_in_keys) { filtered_item_count++; return; }