Background (feel free to skip)
Ok, I understand this post is kind of weird OR may not relate to everybody, but stick with me here... let...
For further actions, you may consider blocking this person and/or reporting abuse
UPDATE:
It has come to my attention that the previous script no longer works b/c of certain changes to elements in the DOM. So, I have updated the script now. Please feel free to use the latest changes as I hope it should work with recent changes to the UI on the site.
Please let me know if I have missed any weird edge cases or if the script doesn't work for any reason. Thanks!
Thanks for the quick update. This script is so useful
Thank you! works great!
king
Oh no...it's not working for me again. :(
This works awesome!! Is there any way to get this to run periodically, like every week? Ideally I don't want to have to pay for a tool like Zapier to do so
to automate this a bit more, you can add this as a 'bookmarklet'
where you add this a clickable bookmark, and you dont need to go into inspector and console and copy and paste code.
freecodecamp.org/news/what-are-boo...
This thread was SUPER helpful. Make sure to minify the js code for a functional bookmarklet. I used minify-js.com/ and this output works fine in chrome:
javascript: !function(){const o=[...document.querySelectorAll("send-to-card-action")].map((o=>o?.querySelector(".coupon-container .coupon-action.button-red"))).filter((o=>null!==o));let e=o.length;var t,n;o.forEach((t=o=>{o.click(),console.log(
Coupons left: ${e}
),e-=1},n=150,(o,e)=>{setTimeout((()=>{t(o)}),e*n)}))}();If anyone else knows of any other sites that might require similar automation to auto-add coupons to cards, I would love to know more about it, so I can contribute to fixing those as well. Let me know, ty!
Shoprite! :)
THANK YOU! THANK YOU! THANK YOU! This was amazing and SO EASY to do. Saving me a ton of time.
Hey it seems like the script is no longer working as of today. Its returning "undefined". Last time it worked was 4 days ago for me. I guess they made changes to the website, hopefully just some updates and not something to block the automation.
Hey Nazmuz, this recently stopped working unfortunately
I wonder if it was deliberate.
Any chance you'd consider doing this for Shoprite? They just went all digital with their coupons, too. Same format. Takes forever to load each individual coupon to your card on their app.
Can't thank you enough for this. Just an FYI, today I had to paste and return about 5 or 6 times to get all the coupons to copy. Not a problem at all, but just letting you know. THANK YOU again! :)
Thanks a lot, this works wonderfully!