Skip to content

Instantly share code, notes, and snippets.

@insertish
Last active October 14, 2021 21:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save insertish/7c4fd070da869142f0f99a6d6b055854 to your computer and use it in GitHub Desktop.
Save insertish/7c4fd070da869142f0f99a6d6b055854 to your computer and use it in GitHub Desktop.
Randomise your Steam purchases for safely fucking with scammers.
[...document.querySelectorAll('.wallet_table_row')]
.map(x => {
if (x.querySelector('.wht_items').innerText.includes('£')) return x.parentElement.removeChild(x);
let amount = (Math.random() * 20).toFixed(2);
x.querySelector('.wht_total').innerText = "£" + amount;
x.querySelector('.wht_wallet_change').innerText = "-£" + amount;
x.querySelector('.wht_wallet_balance').innerText = "£0.00";
});
[...document.querySelectorAll('.wth_payment')].map(x => x.innerText = 'Visa **37');
document.querySelector('#header_wallet_balance').innerText = '£0.00';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment