Last active
July 19, 2024 22:26
-
-
Save smaharj1/6d96b368f93c1951ed301cffe87c783e to your computer and use it in GitHub Desktop.
Chase bank auto apply offers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
APPLY CHASE BANK CC OFFERS | |
This script helps you apply all the Chase bank credit cards automatically. | |
- Login to Chase and go to https://secure03b.chase.com/web/auth/dashboard#/dashboard/offers/index. | |
- Open 'Inspect Element' | |
- Go to Scripts tab and copy this script. | |
- Run this script. | |
*/ | |
const BUTTON_CLASSNAME = 'sixersoffers__cta'; | |
const ALREADY_APPLIED_OFFER_CLASSNAME = 'confirmation'; | |
function timeout(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
const getButtons = () => { | |
const allButtons = document.getElementsByClassName(BUTTON_CLASSNAME); | |
let validButtons = []; | |
for (let j=0; j < allButtons.length; j++) { | |
if (allButtons[j].getElementsByClassName(ALREADY_APPLIED_OFFER_CLASSNAME).length <= 0) { | |
validButtons.push(allButtons[j]) | |
} | |
} | |
return validButtons; | |
} | |
const begin = async () => { | |
let buttons = getButtons(); | |
while (buttons.length > 0) { | |
let btn = buttons[0]; | |
btn.click(); | |
await timeout(1500); | |
let close = document.getElementById('flyoutClose'); | |
close.click(); | |
await timeout(1500); | |
buttons = getButtons(); | |
} | |
} | |
begin(); |
@nachtien - Chase recently updated their "Offers" page again, so this no longer works as of 11/18/2023.
Update, made this for Wells Fargo deals
https://gist.github.com/BrandenBedoya/d923400d286ef4f9b5471a4f41457a1f
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
working script as of 6/19/2023: