Greasemonkey script to repeatedly refresh a given page, look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success.
This script was concieved and created due to the Nintendo Switch shortage during the COVID-19 pandemic. Its original purpose was to monitor for the Nintendo Switch console to come back into stock and get it added to your cart as quickly as possible. Granted, you stand very little chance compared to scalpers using fully automated tools like Bird Bot.
- Install Tampermonkey or Greasemonkey for your browser.
- Install the script into your browser by clicking the "Raw" button in the top-right corner of the js script below.
- Sign into your Amazon.com, BestBuy.com or Walmart.com account (or all three).
- Make sure your payment and shipping info is up to date to save time later.
- Add the item(s) you want to buy to a new "wishlist" or "save for later" list.
- (This script operates on the assumption that the items are out of stock or not available. If they're available... then just buy them.)
- Set your computer's volume appropriately and make sure it is within earshot.
- Navigate to the saved items page:
- Best Buy: https://www.bestbuy.com/site/customer/lists/manage/saveditems
- Walmart:
https://www.walmart.com/lists (then click on the correct list.)- The list page doesn't seem to have "add to cart" buttons anymore.
- Amazon: https://www.amazon.com/gp/registry/wishlist/ (then click on the correct list.)
- The script will run automatically on each of the above pages.
- You'll hear an annoying, repeating, audible alert when an item has been successfully added.
- Head to your computer quickly and complete your purchase.
- Move the selectors into GM local storage to allow end users to customize settings instead of having to edit the script itself.
- Register a browser menu button to toggle the search/refresh on/off per-site.