Fix sell on noob
This commit is contained in:
@@ -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() ?? ''),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user