Slickdeals is community-supported.  We may get paid by brands for deals, including promoted items.
Popular
Meijer Discounts, Deals and Coupon Codes

Grocery store coupon clipping automation (Mperks, Kroger, publix etc..) using JavaScript (similar to the Amex offers Javascript)

3,709 10,631 April 10, 2025 at 10:15 AM in Grocery (5) Get Meijer coupons
Deal
Score
+28
7,116 Views

Deal Details

Last Edited by Cobalt_Blue_FF April 10, 2025 at 12:31 PM
+28 Deal Score
7,116 Views
Similar to the Amex offers JavaScript that you can bookmark and run to clip all offers, I crafted one that works for Meijer Mperks. Note that Mperks has a limit of 160 coupons clipped per their TOC, so I added a clip limit of 160 to the code . It was not real clear if that is how many you can clip per x amount of time or the total number of clipped coupons.

Either way, I found it threw an error after clipping a bunch of them. But it did work!

Also, here is a direct link to your handpicked offers, it is not always obvious when these are available.

https://www.meijer.com/shopping/c...ffers.html

Mods please delete if this is not allowed to be posted. Thanks!

Just create a new bookmark, and add this code as the webpage. Then click it while on the Amex offers or Mperks coupon pages

Enjoy!

I am adding all new stores to the wiki

Mperks Clipper:
Code:
javascript:btns=[...document.querySelectorAll('button.coupon-tile__button--clip[aria-label^="Clip $"]')];let limit=160;c=()=>{if(btns.length===0||limit<=0)return;b=btns.shift();b.click();limit--;setTimeout(c,Math.random()*300)};c();
Amex Offers Clipper:
Code:
javascript:btns=[...document.querySelectorAll('.offer-cta')].filter(b => b.textContent === 'Add to Card');c=()=>{ b = btns.shift(); if (!b) return; b.click(); setTimeout(c, Math.random() * 300) };c();
Kroger:
Code:
javascript:[...document.querySelectorAll('button[aria-label*="Clip"]')].forEach(btn => btn.click());
Kroger without boost coupons (the above one breaks if you do not have boost)
Code:
javascript:[...document.querySelectorAll('button[aria-label*="Clip"]')].filter(btn => !btn.textContent.includes("Boost")).forEach(btn => btn.click());
https://www.meijer.com/shopping/c...ffers.html
About the OP
Joined Jun 2005 L8: Grand Teacher
10,631 Reputation Points
725 Deals Posted
3,333 Votes Submitted
3,709 Comments Posted

Community Wiki

Last Edited by Cobalt_Blue_FF April 14, 2025 at 09:33 AM
Mperks Clipper:
Code:
javascript:btns=[...document.querySelectorAll('button.coupon-tile__button--clip[aria-label^="Clip $"]')];let limit=160;c=()=>{if(btns.length===0||limit<=0)return;b=btns.shift();b.click();limit--;setTimeout(c,Math.random()*300)};c();
Amex Offers Clipper:
Code:
javascript:btns=[...document.querySelectorAll('.offer-cta')].filter(b => b.textContent === 'Add to Card');c=()=>{ b = btns.shift(); if (!b) return; b.click(); setTimeout(c, Math.random() * 300) };c();
Kroger:
Code:
javascript:[...document.querySelectorAll('button[aria-label*="Clip"]')].forEach(btn => btn.click());
Kroger without boost coupons (the above one breaks if you do not have boost)
Code:
javascript:[...document.querySelectorAll('button[aria-label*="Clip"]')].filter(btn => !btn.textContent.includes("Boost")).forEach(btn => btn.click());
Publix:
Code:
javascript:(function(){document.querySelectorAll('.p-coupon-button__label').forEach(button => button.click());})();
Winn-Dixie
Code:
javascript:btns=[...document.querySelectorAll('span[id^="cpnSpan_"]')];c=()=>{b=btns.shift();if(!b)return;b.click();setTimeout(c,Math.random()*300)};c();
HEB
Code:
javascript:btns=[...document.querySelectorAll('span.ButtonLabel_buttonLabel__z680Q')].filter(btn=>btn.textContent.trim()==='Clip');c=()=>{b=btns.shift();if(!b)return;b.click();setTimeout(c,Math.random()*300)};c();
Kroger Cash Back
Code:
javascript:btns=[...document.querySelectorAll('button[data-testid^="CouponActionButton-"]')];c=()=>{b=btns.shift();if(!b)return;b.click();setTimeout(c,Math.random()*300)};c();
Add store names here and I will work on JavaScriptlets for them.

Your comment cannot be blank.

Sign up for a Slickdeals account to remove this ad.

Joined Nov 2003
Find me a slickdeal !
> bubble2 1,160 Posts
149 Reputation
NeoD192
04-10-2025 at 10:47 AM.
04-10-2025 at 10:47 AM.
I followed your steps, but nothing seems to happen when I click the bookmark. I guess I need some help setting this up in Chrome.
Reply
Joined Jun 2005
L8: Grand Teacher
> bubble2 3,709 Posts
10,631 Reputation
Original Poster
Pro
Expert
This user is an Expert in Home & Home Improvement
Cobalt_Blue_FF
04-10-2025 at 10:51 AM.
04-10-2025 at 10:51 AM.
Quote from NeoD192 :
I followed your steps, but nothing seems to happen when I click the bookmark. I guess I need some help setting this up in Chrome.
The only thing I could think of is that you maybe didn't copy the entire code? I see the code tags scroll to the far right and it doesn't word wrap. The other thing is make sure you're on the page that shows the clip coupons buttons. Otherwise maybe your Chrome is more locked down for javascript?
Reply
Joined Feb 2007
not that kind of chem
> bubble2 877 Posts
795 Reputation
chemdude
04-10-2025 at 10:51 AM.
04-10-2025 at 10:51 AM.
any chance you could make one for Kroger??
Reply
Joined Aug 2011
L5: Journeyman
> bubble2 849 Posts
196 Reputation
Bulldogpride08
04-10-2025 at 10:55 AM.
04-10-2025 at 10:55 AM.
AMEX worked flawlessly but when I run the mperks one it only clips 5-10 coupons before stopping. If i refresh the page and re-run it'll clip another 5-10 randomly then stop again.
1
Reply
Joined Jun 2005
L8: Grand Teacher
> bubble2 3,709 Posts
10,631 Reputation
Original Poster
Pro
Expert
This user is an Expert in Home & Home Improvement
Cobalt_Blue_FF
04-10-2025 at 11:18 AM.
04-10-2025 at 11:18 AM.
Quote from chemdude :
any chance you could make one for Kroger??
I just added one for Kroger (actually two, one for boost members and one without). They are in the OP. I also created a Wiki for people to request new ones.
Reply
Last edited by Cobalt_Blue_FF April 10, 2025 at 11:24 AM.
Joined Nov 2003
Find me a slickdeal !
> bubble2 1,160 Posts
149 Reputation
NeoD192
04-10-2025 at 11:32 AM.
04-10-2025 at 11:32 AM.
Quote from Cobalt_Blue_FF :
The only thing I could think of is that you maybe didn't copy the entire code? I see the code tags scroll to the far right and it doesn't word wrap. The other thing is make sure you're on the page that shows the clip coupons buttons. Otherwise maybe your Chrome is more locked down for javascript?
OK, thanks. I tried it again and I definitely have the full code, in one line. This goes in the URL field for the bookmark, right?
Reply
Joined Jun 2005
L8: Grand Teacher
> bubble2 3,709 Posts
10,631 Reputation
Original Poster
Pro
Expert
This user is an Expert in Home & Home Improvement
Cobalt_Blue_FF
04-10-2025 at 11:34 AM.
04-10-2025 at 11:34 AM.
Quote from chemdude :
any chance you could make one for Kroger??
Quote from Bulldogpride08 :
AMEX worked flawlessly but when I run the mperks one it only clips 5-10 coupons before stopping. If i refresh the page and re-run it'll clip another 5-10 randomly then stop again.
Quote from NeoD192 :
OK, thanks. I tried it again and I definitely have the full code, in one line. This goes in the URL field for the bookmark, right?
Yep! It runs quietly, so when it works, you do not see much activity. Maybe try it in incognito mode? Also, make sure you have the mperks code and not one of the other ones.
Reply

Sign up for a Slickdeals account to remove this ad.

Joined Sep 2018
New User
> bubble2 3 Posts
10 Reputation
NathanN5367
04-10-2025 at 11:46 AM.
04-10-2025 at 11:46 AM.
Quote from Bulldogpride08 :
AMEX worked flawlessly but when I run the mperks one it only clips 5-10 coupons before stopping. If i refresh the page and re-run it'll clip another 5-10 randomly then stop again.
Same here
Reply
Joined Oct 2022
New User
> bubble2 6 Posts
10 Reputation
UniqueRailway1627
04-10-2025 at 12:23 PM.
04-10-2025 at 12:23 PM.
I'm so dumb, can someone tell me what this is for?
Reply
Joined Jun 2005
L8: Grand Teacher
> bubble2 3,709 Posts
10,631 Reputation
Original Poster
Pro
Expert
This user is an Expert in Home & Home Improvement
Cobalt_Blue_FF
04-10-2025 at 12:30 PM.
04-10-2025 at 12:30 PM.
Quote from UniqueRailway1627 :
I'm so dumb, can someone tell me what this is for?
Many grocery stores have digital coupons that you have to click to clip. These pieces of Javascript can be saved just like normal webpage bookmarks, and when you click them on the respective retailer's coupon page, they will clip the coupons for you.

So far I have posted Publix, Kroger, Mperks (Meijer), and the code for Amex offers, which uses a similar clicking style.

Let me know if you want any more stores added!
Reply
Joined Oct 2022
L2: Beginner
> bubble2 46 Posts
54 Reputation
Colamisu
04-10-2025 at 12:34 PM.
04-10-2025 at 12:34 PM.
Quote from UniqueRailway1627 :
I'm so dumb, can someone tell me what this is for?
The above stores all have online coupons that you have to manually clip on their site so that you can use them in store with your member ID. You use the javascript provided to automatically clip all available coupons when viewing the list in your browser.

I would be surprised if the Kroger one works. At one point, I got an error from their site because I hit the limit of currently clipped coupons. Unless that's changed, I expect it fails after ~50.
1
Reply
Joined Feb 2009
L3: Novice
> bubble2 150 Posts
56 Reputation
ambo
04-10-2025 at 12:50 PM.
04-10-2025 at 12:50 PM.
Quote from Cobalt_Blue_FF :
Many grocery stores have digital coupons that you have to click to clip. These pieces of Javascript can be saved just like normal webpage bookmarks, and when you click them on the respective retailer's coupon page, they will clip the coupons for you. So far I have posted Publix, Kroger, Mperks (Meijer), and the code for Amex offers, which uses a similar clicking style. Let me know if you want any more stores added!
Where is Publix?
Reply
Joined May 2017
L7: Teacher
> bubble2 2,799 Posts
1,564 Reputation
Pro
Expert
This user is an Expert in Health & Beauty
Scintillation
04-10-2025 at 12:58 PM.
04-10-2025 at 12:58 PM.
Here is this one I use for Bj's. I personally use it with Violentmonkey but you can use a different "monkey" extension too.
Everytime before I go to Bj's, I just run this and all the coupons are clipped. It's like magic!
A lot of coupons are 1x per day, so the next time you want to use it, you have to clip it again.

https://greasyfork.org/en/scripts...on-clicker
2
Reply
Page 1 of 3
Start the Conversation
 
Link Copied

The link has been copied to the clipboard.