Skip to content

Instantly share code, notes, and snippets.

@carmona
Last active June 28, 2016 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmona/97dbcfca65e8931150fa4c7153e88c03 to your computer and use it in GitHub Desktop.
Save carmona/97dbcfca65e8931150fa4c7153e88c03 to your computer and use it in GitHub Desktop.
Steam sales auto-remove
const removeBtn = '.item_market_action_button';
const confirmBtn = '#market_removelisting_dialog_accept';
let sell = document.querySelector(removeBtn);
sell.classList = [];
var start = setInterval(function(){
cancelSale();
},2000);
function cancelSale(){
let firstItem = document.querySelector(removeBtn);
firstItem.click();
setTimeout(function(){
let confirmation = document.querySelector(confirmBtn);
confirmation.click();
},1000);
}
@carmona
Copy link
Author

carmona commented Jun 28, 2016

For when you need to remove your cards/items from Steam's community market (e.g. for resetting prices because they didn't sell well) but there's too many of them to spend time manually removing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment