Created
January 15, 2019 19:56
-
-
Save dantheman3333/7ae76e50e8778805c8d04dc8d0fb4692 to your computer and use it in GitHub Desktop.
Add all American Express 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
let buttons = Array.from(document.getElementsByClassName('btn offer-cta btn-secondary btn-sm btn-fluid')); | |
let offerButtons = buttons.filter(button => button.title == "Add to Card"); | |
offerButtons.forEach(button => { | |
console.log("Clicked on Add to Card") | |
button.click() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment