Skip to content

Instantly share code, notes, and snippets.

@santisbon
Last active June 25, 2024 17:07
Show Gist options
  • Save santisbon/a4e9bc639911a2d60176b71e1661bc82 to your computer and use it in GitHub Desktop.
Save santisbon/a4e9bc639911a2d60176b71e1661bc82 to your computer and use it in GitHub Desktop.
Add all Chase Offers to your card with one click.
// Reference: https://www.reddit.com/r/ChaseSapphire/comments/18pb8w5/auto_add_all_offers_to_chase_card/
// You can show/hide the Favorites Bar with shift-command-B.
// Add a bookmark to your Favorites Bar with this as the address:
javascript:a=()=>{window.history.back(); setTimeout(c, Math.random() * 1000 + 300);}; c=()=> { btns=[...document.querySelectorAll('._1bof7fb8')].filter(b => b.childNodes[1].childNodes[0].type !== 'ico_checkmark_filled'); b = btns.pop(); if (!b) return console.log('added all!'); b.childNodes[0].click(); setTimeout(a, Math.random() * 1000 + 300); }; c();
// Now go to your Chase Offers page and click on the bookmark.
// Pretty-printed version for review
a=()=>{
window.history.back();
setTimeout(c, Math.random() * 1000 + 300);
};
c=()=> {
btns=[...document.querySelectorAll('._1bof7fb8')].filter(b => b.childNodes[1].childNodes[0].type !== 'ico_checkmark_filled');
b = btns.pop();
if (!b)
return console.log('added all!');
b.childNodes[0].click();
setTimeout(a, Math.random() * 1000 + 300);
};
c();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment