Skip to content

Instantly share code, notes, and snippets.

@dwaxe
Last active March 8, 2025 00:02
Show Gist options
  • Save dwaxe/46e4a843b9c87f0bc47eb6abc855e696 to your computer and use it in GitHub Desktop.
Save dwaxe/46e4a843b9c87f0bc47eb6abc855e696 to your computer and use it in GitHub Desktop.
Automatically activate credit card cash back offers
// Bank of America: https://secure.bankofamerica.com/customer-service/deals/
document.querySelectorAll('div.deal-logo').forEach(e => e.click())
// Chase: https://secure07a.chase.com/web/auth/dashboard#/dashboard/offers/merchantFundedOffers/requestAvailableMerchantOffers
const sleep = (milliseconds) => new Promise(resolve => setTimeout(resolve, milliseconds))
flyoutClose = document.querySelector('a#flyoutClose')
addOffer = document.querySelector('a.sixersoffers__cta')
while (addOffer.text === "Add to card") {
addOffer.click()
await sleep(3000)
flyoutClose.click()
await sleep(3000)
addOffer = document.querySelector('a.sixersoffers__cta')
}
// Discover: https://card.discover.com/cardmembersvcs/promotions/app/5percent
// American Express: ?
@nachtien
Copy link

@BrandenBedoya
Copy link

BrandenBedoya commented Jun 11, 2024

Can you set one up for Wells Fargo Deals too?

Edit - made it for Wells Fargo Deals: https://gist.github.com/BrandenBedoya/d923400d286ef4f9b5471a4f41457a1f

@kenji4861
Copy link

Worked beautifully. Thank you.

@TheOnlyOnlyName
Copy link

Nice thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment