Fix sell on noob

This commit is contained in:
2026-09-06 12:32:09 +02:00
parent 0099a6b753
commit 41c6f232fe
3 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function findNoobModeBuyButtons(root: ParentNode): HTMLElement[] {
// Buy and Sell noob-mode buttons are siblings too; the buy one is
// identified by its own text starting with "Buy", never by position.
return Array.from(root.querySelectorAll<HTMLElement>('button.bg-increase')).filter((button) =>
{console.log(button.textContent); return NOOB_MODE_BUY_TEXT.test(button.textContent?.trim() ?? '')},
NOOB_MODE_BUY_TEXT.test(button.textContent?.trim() ?? ''),
);
}