分享自用自动点网银deal的脚本
Chrome Ctrl +Shift +I 选Console输入即可
BofA
https://secure.bankofamerica.com/customer-deals/
document.querySelectorAll('div.deal-logo').forEach(e => e.click())
Chase
https://secure.chase.com/web/auth/dashboard#/dashboard/merchantOffers/offer-hub
// Function to find and click icons
function clickIcons() {
const icons = document.querySelectorAll('mds-icon[type="ico_add_circle"][data-cy="commerce-tile-button"]');
icons.forEach(icon => {
// Check if the icon is visible
if (icon.offsetWidth > 0 && icon.offsetHeight > 0) {
icon.click();
console.log('Clicked icon:', icon);
} else {
console.log('Icon is hidden:', icon);
}
});
}
// Call the function
clickIcons();
AMEX
https://global.americanexpress.com/offers/eligible
// Find all buttons with the specified class names
const buttons = document.querySelectorAll('.axp-offers__global__mobileWidth100___3A2Jn button.offer-cta');
// Click each button with a delay
let delay = 0;
buttons.forEach(button => {
setTimeout(() => {
button.click();
console.log('Clicked "Add to Card" button');
}, delay);
delay += 2000; // Adjust the delay between clicks (in milliseconds)
});