Skip to content

Instantly share code, notes, and snippets.

@jonavon
Forked from neil1023/bjs_coupon_clipper.js
Last active April 26, 2024 14:54
Show Gist options
  • Save jonavon/31c8c529dd73651c4aba61d195403339 to your computer and use it in GitHub Desktop.
Save jonavon/31c8c529dd73651c4aba61d195403339 to your computer and use it in GitHub Desktop.
BJs Coupon Clipper
// This script can be run in the browser console
// Just navigate to https://www.bjs.com/myCoupons and execute the script
// This script will clip all the coupons on the current page
//
// Created on 10/13/22
// Modified 2024-04-26
document.querySelectorAll("button[name='clipToCard']").forEach(function(item) {item.click()});
// Harris Teeter
// https://www.harristeeter.com/savings/cl/coupons/
document.querySelectorAll("button.CouponCard-button.palette-accent").forEach(function(item) {item.click()});
// Safeway
// https://www.safeway.com/foru/coupons-deals.html
document.querySelectorAll("loyalty-card-action-buttons > button").forEach(function(item) {item.click()});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment