Last active
June 28, 2016 04:08
-
-
Save carmona/97dbcfca65e8931150fa4c7153e88c03 to your computer and use it in GitHub Desktop.
Steam sales auto-remove
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.