Skip to content

Instantly share code, notes, and snippets.

@davehague
Last active May 25, 2024 16:15
Show Gist options
  • Save davehague/4333ea156ed85802900dbfd334f5cc98 to your computer and use it in GitHub Desktop.
Save davehague/4333ea156ed85802900dbfd334f5cc98 to your computer and use it in GitHub Desktop.
Click all Chase Partner Offers Bookmarklet

Chase credit cards offer partner rebates, but you have to go in an manually click them. Use this script when you're on the offer page to click all of them, and then if you happen to purchase the item in the partner reward, you'll be alerted of a rebate via email!

Here's a guide on bookmarklets if you're not familiar with how they work.

Here's the code.

javascript:(function(){
    var container = document.querySelector('div[data-testid="offerTileGridContainer"]');
	
    if (container) {
        var children = container.querySelectorAll(':scope > div');
        children.forEach(function(child) {
            var event = new MouseEvent('click', {
                bubbles: true,
                cancelable: true,
                view: window
            });
            child.dispatchEvent(event);
        });
        var offerMessage = `Completed clicking ${children.length} offers!`;
        alert(offerMessage);
        window.location.href = 'https://secure.chase.com/web/auth/dashboard#/dashboard/merchantOffers/offer-hub';
    } else {
        alert('No element found with the specified data-testid.');
    }
})();

  1. Log into Chase

  2. Click your credit card

  3. Click "Chase Offers". This should take you to a URL something like this: https://secure.chase.com/web/auth/dashboard#/dashboard/merchantOffers/offer-hub?accountId=123456789

  4. Usually at this point you'd have to click each one, then click back in the browser to click the next. Instead, just click your bookmarklet!

image

  1. Enjoy your passive savings!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment