Coder Social home page Coder Social logo

bjs-wholesale-coupon-bot's Introduction

Bjs-Wholesale-Coupon-Bot

Instructions

function sleep(t) {  
  const start = Date.now();
  while (Date.now() - start < t);
}

var interval = setInterval(function(){
	const buttons = document.getElementsByName('clipToCard');

			
	buttons.forEach(btn => {
		console.log("Clicking: " + buttons.length + " ", btn);
		btn.click();
		btn.scrollIntoView({behavior:"smooth"});
		buttons[btn].remove();
		sleep(3000);
	});

    if (buttons.length === 0) {
        console.log("Done");
        clearInterval(interval);
    }
		
}, 3000);
    

You may need to run this more than once (press the up arrow in the console, and Enter again.)

bjs-wholesale-coupon-bot's People

Contributors

xpertdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rhiraldo

bjs-wholesale-coupon-bot's Issues

Running Error

Hi there,

This used to work for me (the last 2 months or so) and I just tried running it but it keeps giving an error for each line (coupon) it runs.

Error 1:
myCoupons:2094 Uncaught ReferenceError: $ is not defined
at :7:19
at o (LogRocket.min.js:2:4582)
at nrWrapper (myCoupons:2092:39)

Error 2:
The following item cannot be handled by the data layer because it does not have a valid format: {"0":"event","1":"page_view","2":{"send_to":"AW-10858302079"}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.