top of page

Bjs.com

Are you tired of clipping all of the coupons for BJ's. Me too, so I created a simple script to help me get all of the rewards as possible.




function clickButton() {
  // Get the button element
  var button = document.querySelector('button.mt-2.btn.gray-btn.next-prev.widthHeight');

  // Click on the button
  button.click();

  // Increment the counter
  counter++;

  // If the counter has reached 70, clear the interval to stop the button from being clicked any further
  if (counter === 5) {
    clearInterval(intervalId);
  }
}

var counter = 0;
var intervalId = setInterval(clickButton, 4000); // Run the clickButton function every 4 seconds (4000 milliseconds)



0 views0 comments

Recent Posts

See All

Dog walking or pet sitting Online tutoring or teaching Freelance writing or editing Graphic design Event planning or coordinating Virtual assisting Social media management Blogging Personal training o

Emergency Fund 401K Match High Interest Debt Roth IRA HSA 529 Max 401K Taxable Low Interest Debt Mortgage https://www.youtube.com/watch?v=UfR9WqxDhGk

bottom of page