예전에 우리동네ml대장 님께서 올려주신 글에 이어서 업데이트가 있어서,
제 개인적으로도 기록에 남기고 종종 쓰기위해서 남깁니다.
만약 이 글의 내용대로 안되면,
https://milestomemories.com/add-all-amex-offers/
링크를 타고 가셔서 혹시 업데이트 된 부분이 있는지 확인해보세요.
1. https://global.americanexpress.com/offers/eligible 에 로그인을 한다.
2. 브라우저에서 F12 를 눌러서 JS Console 을 연다. (저는 크롬을 씁니다)
3. 밑의 코드를 Console 부분 가장 밑 > 에 Copy & Paste 한다.
var offerButtons = Array.from(document.getElementsByClassName("btn btn-sm btn-fluid offer-cta btn-secondary")).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));
}
4. 만약 3번의 코드가 안먹히면 이 코드를 넣는다.
var offerButtons = Array.from(document.getElementsByClassName("btn btn-sm btn-fluid offer-cta btn-secondary")).filter(btn => btn.title == "Activate Offer");
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));
}
저는 3번 코드가 안먹혀서 4번 코드로 했습니다. 이렇게 글로 등록하고 계속 써먹어야겠어요. ㅎㅎ
감사합니다.