You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Find all the "Add to Card" buttons on the page
var offerButtons = Array.from(document.getElementsByClassName("offer-cta axp-offers__global__fluid___15Bk5 css-1duq00z")).filter(btn => btn.title == "Add to Card");
var index;
for (index = 0; index < offerButtons.length; ++index) {
console.log("Clicking offer button");
offerButtons[index].click();
// Wait 2seconds to be nice to AMEX servers :)
await new Promise(r => setTimeout(r, 2000));
}
varofferButtons=Array.from(document.getElementsByClassName("offer-cta")).filter(btn=>btn.title=="Add to Card");varindex;for(index=0;index<offerButtons.length;++index){console.log("Clicking offer button");offerButtons[index].click();awaitnewPromise(r=>setTimeout(r,1000));}
// Find all the "Add to Card" buttons on the page
var offerButtons = Array.from(document.getElementsByClassName("offer-cta axp-offers__global__fluid___15Bk5 css-1duq00z")).filter(btn => btn.title == "Add to Card");
var index;
for (index = 0; index < offerButtons.length; ++index) {
console.log("Clicking offer button");
offerButtons[index].click();
// Wait 2seconds to be nice to AMEX servers :)
await new Promise(r => setTimeout(r, 2000));
}
https://www.reddit.com/r/amex/comments/nrlmbs/mostly_automated_way_to_add_all_offers/
The text was updated successfully, but these errors were encountered: