From 47588de5a3d3f156454204e1c8fbeedea622c451 Mon Sep 17 00:00:00 2001 From: Abhorrent_Anger Date: Sun, 31 Mar 2024 18:53:59 +0300 Subject: [PATCH] Untradable item processing --- script.js | 9 ++++----- style.css | 4 ++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/script.js b/script.js index 3ab3862..831dddc 100644 --- a/script.js +++ b/script.js @@ -1,11 +1,9 @@ var checkable_accounts = { - '76561198311319887': 'Weapon Crusher', '76561199039790818': 'Megumin', '76561199140988104': 'Bela', - '76561198104201017': 'Daniela', '76561199125108615': 'Squid Girl Bot', '76561199550718094': 'refbot.tf', - '76561199202848205': 'The Agency', '76561199034865605': 'Amazon Prime' + '76561198311319887': 'Weapon Crusher' }; var ignorable_accounts = ['76561198042562877', '76561199193118161', '76561199090583973', '76561198103306049', '76561198093294992', '76561198109434661', '76561198080691777', '76561199209645193', '76561198176218038', - '76561198257334931', '76561198931095630', '76561198131872819', '76561198992992515']; + '76561198257334931', '76561198931095630', '76561198131872819', '76561198992992515', '76561199212467171']; var ignored_accounts = []; decaled_objects = { 'Conscientious Objector': '3.66', 'Clan Pride': '2.11', 'Flair!': '4.22', 'Photo Badge': '2.44' } backpack_page_limit = 10; @@ -122,11 +120,12 @@ function handleHTML(steam_id, steam_name, html_string) { var parent = $(this).parent(); var is_strange = parent.hasClass('q-440-11'); var is_uncraftable = parent.hasClass('nocraft'); + var is_untradable = parent.hasClass('notrade'); var is_price_in_keys = $('.bottom-right span', parent).text().includes('key'); var url = "https://next.backpack.tf/item/" + parent.attr('data-id'); var a = $(''); a.append(parent); - if (is_strange || is_uncraftable || is_price_in_keys) { + if (is_strange || is_uncraftable || is_untradable || is_price_in_keys) { filtered_item_count++; parent.addClass('filtered-item'); a.on("mouseenter", previewFilteredItem).on("mouseleave", hideFilteredItem) diff --git a/style.css b/style.css index cb86a34..42fdac3 100644 --- a/style.css +++ b/style.css @@ -78,6 +78,10 @@ li { border-style: dashed; } +.notrade { + border-color: red; +} + .top-left { display: none; }