- Go to the Keyfood coupons page while logged in (https://www.keyfood.com/store/keyFood/en/loyalty/coupons/clippable)
- Right click anywhere, hit inspect, go to console (tab up top)
- 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
- Give it a minute or so to process all of the coupons, once they all say "Clipped" they're added to your card
Last active
April 16, 2024 12:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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!'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment