Skip to content

Instantly share code, notes, and snippets.

@DiegoFleitas
Last active February 19, 2023 19:21
Show Gist options
  • Save DiegoFleitas/0c1a18c956f118976e39e693b8abde26 to your computer and use it in GitHub Desktop.
Save DiegoFleitas/0c1a18c956f118976e39e693b8abde26 to your computer and use it in GitHub Desktop.
steam market remove listing
async function removeListings() {
const buttons = document.querySelectorAll('.item_market_action_button_contents');
for (const button of buttons) {
button.click();
console.log('clicked', button);
// Wait 2 seconds before clicking the acceptance button
await new Promise(resolve => setTimeout(resolve, 2000));
const acceptButton = document.querySelector('#market_removelisting_dialog_accept');
acceptButton.click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment