Untradable item processing
This commit is contained in:
parent
44043f5c41
commit
47588de5a3
|
@ -1,11 +1,9 @@
|
||||||
var checkable_accounts = {
|
var checkable_accounts = {
|
||||||
'76561198311319887': 'Weapon Crusher', '76561199039790818': 'Megumin', '76561199140988104': 'Bela',
|
'76561198311319887': 'Weapon Crusher'
|
||||||
'76561198104201017': 'Daniela', '76561199125108615': 'Squid Girl Bot', '76561199550718094': 'refbot.tf',
|
|
||||||
'76561199202848205': 'The Agency', '76561199034865605': 'Amazon Prime'
|
|
||||||
};
|
};
|
||||||
var ignorable_accounts = ['76561198042562877', '76561199193118161', '76561199090583973', '76561198103306049',
|
var ignorable_accounts = ['76561198042562877', '76561199193118161', '76561199090583973', '76561198103306049',
|
||||||
'76561198093294992', '76561198109434661', '76561198080691777', '76561199209645193', '76561198176218038',
|
'76561198093294992', '76561198109434661', '76561198080691777', '76561199209645193', '76561198176218038',
|
||||||
'76561198257334931', '76561198931095630', '76561198131872819', '76561198992992515'];
|
'76561198257334931', '76561198931095630', '76561198131872819', '76561198992992515', '76561199212467171'];
|
||||||
var ignored_accounts = [];
|
var ignored_accounts = [];
|
||||||
decaled_objects = { 'Conscientious Objector': '3.66', 'Clan Pride': '2.11', 'Flair!': '4.22', 'Photo Badge': '2.44' }
|
decaled_objects = { 'Conscientious Objector': '3.66', 'Clan Pride': '2.11', 'Flair!': '4.22', 'Photo Badge': '2.44' }
|
||||||
backpack_page_limit = 10;
|
backpack_page_limit = 10;
|
||||||
|
@ -122,11 +120,12 @@ function handleHTML(steam_id, steam_name, html_string) {
|
||||||
var parent = $(this).parent();
|
var parent = $(this).parent();
|
||||||
var is_strange = parent.hasClass('q-440-11');
|
var is_strange = parent.hasClass('q-440-11');
|
||||||
var is_uncraftable = parent.hasClass('nocraft');
|
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 is_price_in_keys = $('.bottom-right span', parent).text().includes('key');
|
||||||
var url = "https://next.backpack.tf/item/" + parent.attr('data-id');
|
var url = "https://next.backpack.tf/item/" + parent.attr('data-id');
|
||||||
var a = $('<a href="' + url + '"></a>');
|
var a = $('<a href="' + url + '"></a>');
|
||||||
a.append(parent);
|
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++;
|
filtered_item_count++;
|
||||||
parent.addClass('filtered-item');
|
parent.addClass('filtered-item');
|
||||||
a.on("mouseenter", previewFilteredItem).on("mouseleave", hideFilteredItem)
|
a.on("mouseenter", previewFilteredItem).on("mouseleave", hideFilteredItem)
|
||||||
|
|
Loading…
Reference in New Issue