diff --git a/src/lib/components/market/item_row_wrapper.ts b/src/lib/components/market/item_row_wrapper.ts
index c2f9ec6a..bc94cb19 100644
--- a/src/lib/components/market/item_row_wrapper.ts
+++ b/src/lib/components/market/item_row_wrapper.ts
@@ -17,6 +17,7 @@ import {
isCharm,
isBlueSkin,
isHighlightCharm,
+ isBuggedSkin,
} from '../../utils/skin';
import {gFilterService} from '../../services/filter';
import {AppId, ContextId, Currency} from '../../types/steam_constants';
@@ -143,6 +144,10 @@ export class ItemRowWrapper extends FloatElement {
return;
}
+ if (isBuggedSkin(this.asset)) {
+ return;
+ }
+
try {
this.itemInfo = await this.fetchFloat();
} catch (e: any) {
@@ -236,6 +241,10 @@ export class ItemRowWrapper extends FloatElement {
return nothing;
}
+ if (isBuggedSkin(this.asset)) {
+ return nothing;
+ }
+
if (this.itemInfo && isSkin(this.asset)) {
const fadePercentage = this.asset && getFadePercentage(this.asset, this.itemInfo)?.percentage;
diff --git a/src/lib/components/market/utility_belt.ts b/src/lib/components/market/utility_belt.ts
index 1dbea531..4fe38b83 100644
--- a/src/lib/components/market/utility_belt.ts
+++ b/src/lib/components/market/utility_belt.ts
@@ -1,14 +1,21 @@
import {FloatElement} from '../custom';
import {CustomElement, InjectBefore, InjectionMode} from '../injectors';
-import {css, html, HTMLTemplateResult} from 'lit';
+import {css, html, HTMLTemplateResult, nothing} from 'lit';
+import {state} from 'lit/decorators.js';
import '../common/ui/steam-button';
import './page_size';
import './sort_listings';
import '../filter/filter_container';
+import {Observe} from '../../utils/observers';
+import {isBuggedSkin} from '../../utils/skin';
+import {AppId, ContextId} from '../../types/steam_constants';
@CustomElement()
@InjectBefore('#searchResultsRows', InjectionMode.ONCE)
export class UtilityBelt extends FloatElement {
+ @state()
+ private buggedSkinCount = 0;
+
get marketHashName(): string {
return (document.querySelector('.market_listing_nav a:nth-child(2)') as HTMLElement).innerText;
}
@@ -31,6 +38,16 @@ export class UtilityBelt extends FloatElement {
text-decoration: underline;
font-family: 'Motiva Sans', sans-serif;
}
+
+ .bugged-skin-warning {
+ padding: 8px 12px;
+ margin-top: 10px;
+ background-color: rgba(255, 152, 0, 0.15);
+ border: 1px solid rgba(255, 152, 0, 0.4);
+ border-radius: 4px;
+ color: #ffb74d;
+ font-size: 13px;
+ }
`,
];
@@ -45,12 +62,53 @@ export class UtilityBelt extends FloatElement {
?hidden="${!this.marketHashName}"
.key="${this.marketHashName}"
>
+ ${this.renderBuggedSkinWarning()}