mayankjoin3

Amazon Coupon

Sep 18th, 2025
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. (() => {
  2.     const buttons = Array.from(document.querySelectorAll('input, button'))
  3.         .filter(btn => btn.innerText.trim().toLowerCase().includes('collect now') || btn.value?.toLowerCase().includes('collect now'));
  4.  
  5.     if (buttons.length === 0) {
  6.         console.log('No "Collect Now" buttons found.');
  7.         return;
  8.     }
  9.  
  10.     buttons.forEach((btn, i) => {
  11.         setTimeout(() => {
  12.             btn.click();
  13.             console.log(`Clicked button ${i + 1} of ${buttons.length}`);
  14.         }, i * 500); // Delay between clicks to avoid throttling
  15.     });
  16. })();
  17.  
Add Comment
Please, Sign In to add comment