// ==UserScript==
// @name Steam Store - Auto addToCart
// @author SheppaRD
// @namespace https://steamcommunity.com/id/itsheppard/
// @version v1
// @description Auto add the game to cart
// @match https://store.steampowered.com/app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// @run-at document-end
// @grant none
// ==/UserScript==
if (location.href.includes('?action=addToCart')) {
setTimeout(document.getElementsByClassName('btn_addtocart')[0].children[0].click(),1000);
}