Skip to content

Instantly share code, notes, and snippets.

@neth392
Last active April 16, 2024 12:17
Show Gist options
  • Save neth392/04a3fb9c6c51902e96ab2a5e90ed09bf to your computer and use it in GitHub Desktop.
Save neth392/04a3fb9c6c51902e96ab2a5e90ed09bf to your computer and use it in GitHub Desktop.
Browser console script to automatically add all digital Keyfoods coupons to your card
(function run() {
const coupons = document.getElementsByClassName('btn-clip-to-card')
console.log(`Coupons ${coupons.length}`);
for(var i = 0; i < coupons.length; i++) {
setTimeout(20);
coupons[i].click();
console.log(`Coupons left: ${coupons.length - i}`);
}
console.log('Done!');
})();
  1. Go to the Keyfood coupons page while logged in (https://www.keyfood.com/store/keyFood/en/loyalty/coupons/clippable)
  2. Right click anywhere, hit inspect, go to console (tab up top)
  3. At the bottom of the console there will be a ">" with a blinking cursor next to it, copy the above code and paste it there. Hit enter
  4. Give it a minute or so to process all of the coupons, once they all say "Clipped" they're added to your card
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment