HuaRenCa
Back to Forum
Community

[Tampermonkey Script] Show End Time of AA Shopping Bonuses

吾如醇酒
吾如醇酒

2 weeks ago

The AA Shopping Portal frequently runs limited-time multiplier/extra mile promotions, but it never shows when they end. I captured the network traffic and found that the backend actually sends this data, so I vibe-coded a Tampermonkey script:

How it looks in use:

Once installed, a floating panel appears in the top-right corner of AA Shopping. Expand it and right-click to view it in Cashback Monitor.

Feedback welcome!

【Tampermonkey Script】Show End Time of AA Shopping Bonuses

【Tampermonkey Script】Show End Time of AA Shopping Bonuses

【Tampermonkey Script】Show End Time of AA Shopping Bonuses

5
309

Comments (5)

Your avatar
Sign in to comment
尊悦刘沛昌
尊悦刘沛昌2 weeks ago

Is the script reading the fields already rendered on the page, or is it intercepting the backend endpoint that carries the timestamp? These two approaches differ quite a bit in how stable they are when the page gets redesigned. I'd like to understand which field you're specifically looking at when you capture the traffic.

第七页
第七页1 week ago

If AA adjusts the interface later on, will the floating window display an incorrect time instead of hiding automatically?

沈阳高文凤
沈阳高文凤1 week ago

From a risk perspective, since this kind of script needs to read data from the shopping portal page, it's best to confirm that it only runs on aadvantage-related domains and that its permissions aren't too broad. Also, just because the backend passes a time doesn't mean the frontend rules won't change on the fly—bonus miles sometimes end early or are determined by click time. The time shown in the floating window can serve as a reference, but it's still best to leave some buffer before placing an order.

haoyu122
haoyu1221 week ago

The right-click shortcut to check historical rates on Cashback Monitor is a pretty practical design—it essentially puts the current bonus into a long-term context so you can judge whether it's worth waiting for.

刘石峰
刘石峰1 week ago

After installation, if the AA page structure changes, how will the script indicate that it has stopped working?