Back with another Greasemonkey script.
A friend of mine discovered a bit of a loophole in Colruyt’s mealbox service: when you order the same ingredients from the mealbox from Collect & Go, you pay less.
Collect & Go is a service by Colruyt where you can order your groceries online and collect them later at the physical store.
The mealboxes are very much alike, except for two things.
One is that they alter the portions to perfectly match the recipe (so sometimes 0.75 pots of yoghurt are included in the mealbox).
The other is that it’s a preconfigured package, so you just have to order the one thing and there’ll be some 15 ingredients waiting for you at the store.
So my friend figured he’d just copy all ingredients from the mealbox page, and insert them into Collect & Go.
This turned out to save him money, while he was getting more (the 0.75 pots of yoghurt are of course not for sale in the collect & go).
Since copying all these ingredients is somewhat time consuming, I wrote a script to automate the process.
Main consists of two functions, extract_ingredients and buy_ingredient.
The first one fetches all ingredients and opens new tabs that search for these ingredients.
The second one buys the first search result once and then closes the tab again.
This is more of a proof of concept, it’s not robust at all, but it works.