This gave me a bit of an idea. I’d fiddled around with Greasemonkey scripts back when I used to use Firefox (which basically use Javascript to alter the contents of pages if you have that script enabled), and I wondered if I could do the same in Chrome to display food safety inspection ratings next to each premises on Just Eat.

It turns out that you can (Chrome has the concept of content scripts), and with a few lines of Javascript, I had an extension that iterates over each premises listed on the search page of the Just Eat website and uses the Food Standards Agency API to search for the result of the take-away’s last food safety insepction.

It doesn’t catch every single premises (mainly because the spelling on the Food Standards Agency Website and Just Eat may not match exactly), but it seems to catch most of them. Interestingly, I also found out that the restaurant I used to use on Just Eat (who used to have a 5) have just gone down to a 2. I’ll be using somewhere else in future then.

You can install the plugin via the Chrome web store, if you’ve got any issues with it, please let me know in the comments. The code is also on Github, so if you’ve got any ideas for improvments, please fork and send a pull request. I’d love to see this extended to support other take-away delivery sites, so if you fancy having a crack, please do!