For use with https://store.steampowered.com/account/history/.
We do a little trolling.
For use with https://store.steampowered.com/account/history/.
We do a little trolling.
[...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'; |