An automated tool to clip all available coupons on your BJ's Wholesale account with a single click.
- Open https://www.bjs.com/myCoupons in your browser
- Sign in to your BJ's Wholesale account
- Open the browser console:
- Chrome/Edge (Windows): Press F12 or Ctrl+Shift+I or right-click and select "Inspect", then click on "Console" tab
- Chrome/Edge (Mac): Press Option+⌘+J, then click on "Console" tab
- Safari: Press Option+⌘+C (first enable Developer menu in Safari > Preferences > Advanced)
- Firefox: Press F12 (Windows) or Option+⌘+K (Mac), then click on "Console" tab
- Guide: https://developers.google.com/web/tools/chrome-devtools/console/javascript
- Copy and paste one of the following options:
Copy and paste this into your console to run with default settings:
fetch('https://raw.githubusercontent.com/xpertdev/Bjs-Wholesale-Coupon-Bot/main/coupon-bot.js')
.then(response => response.text())
.then(code => eval(code))
.catch(error => console.error('Error loading coupon bot:', error));
If you want to customize settings (for example, to make the bot run faster or slower), use this version:
// Change any values you want to customize
window.customConfig = {
baseDelay: 1800 // Sleep timeout in ms. Try 5000 for slower connections or 1000 for faster clipping (default: 1000ms).
};
// Run the bot with your custom settings
fetch('https://raw.githubusercontent.com/xpertdev/Bjs-Wholesale-Coupon-Bot/main/coupon-bot.js')
.then(response => response.text())
.then(code => eval(code))
.catch(error => console.error('Error loading coupon bot:', error));
Copy the contents from the coupon-bot.js file and paste it into the console.
The bot will automatically:
- Detect your browser type and adjust functionality accordingly
- Find all available coupons on the page using multiple detection methods
- Click each "Clip" button one by one with cross-browser compatible methods
- Scroll each coupon into view as it's clipped
- Continue until all coupons are clipped or maximum attempts are reached
Note: If some coupons remain unclipped after the script finishes, you may need to run it again. Simply press the up arrow in the console to recall the previous command and press Enter to execute it again.
- Chrome/Edge: Fully supported with smooth scrolling.
- Firefox: Supported with adjusted timing for proper coupon clipping.
- Safari: Supported with alternative scrolling behavior and extended timing.
The script uses cross-browser compatible JavaScript to interact with coupon websites, locating and clicking all coupon buttons regardless of browser differences. It includes error handling, browser detection, and will automatically retry if needed.
No additional setup or installation is required - just copy, paste and run in the browser console!
The script includes several configurable parameters that can be adjusted to optimize performance:
const config = {
baseDelay: 2000, // Base delay in milliseconds for Chrome/Edge (default: 1000ms)
firefoxDelay: 4000, // Delay for Firefox (default: 1500ms)
safariDelay: 4000, // Delay for Safari (default: 1500ms)
maxAttempts: 5, // Default max attempts for Chrome/Edge/Firefox (default: 5)
safariMaxAttempts: 6 // Max attempts for Safari (default: 6)
};
You can modify these values in the console before running the script if you need to:
- Increase delays if the website is slow or coupons aren't clipping properly
- Decrease delays if the website is responsive and you want faster clipping
- Adjust max attempts based on how many coupons you typically need to process
Many grocery and wholesale club websites offer digital coupons, but the process of clipping these coupons is often frustrating. Ideally, digital coupons should be automatically applied at checkout, similar to Costco Wholesale, eliminating the need for manual clipping. However, due to poor user experience, this tool was created to address the following issues:
- Manually clicking dozens (or even hundreds) of individual "clip" buttons is tedious and time-consuming.
- Websites often load slowly between clicks, further complicating the process.
- It's easy to overlook coupons that could save you money.
This bot automates the entire process, saving you time and ensuring you don't miss out on any potential savings.
This tool is known to work on several sites including the following:
- BJ's Wholesale Club: https://www.bjs.com/myCoupons
- Harris Teeter: https://www.harristeeter.com/savings/cl/coupons/