| On inspecting the page where they list restaurants, I can see a several versions of jQuery code like this, for each cuisine. $('#Fish & Chips').on('change', function () { if ($('#Fish & Chips').is(':checked')) {
$('.Fish & Chips').css('background-color', '#3a606e;');
$('.Fish & Chips').css('color', '#fff;');
} else {
$('.Fish & Chips').css('background-color', '#fff');
$('.Fish & Chips').css('color', '#3a606e;');
}
});I have a good feeling this is more of copy-pasta code from either Copilot or ChatGPT or StackOverflow. That also explains why they handled encryption the way described in the article. Dev: "Hey LLM, how do I pass data around in a secure way ?" Bot: "You can encrypt the data before you send it, so that only users who have the relevant keys can read them" Dev: "Hey LLM, it is not possible to access the data I have encrypted on the frontend" Bot: "Here is the javascript code to decrypt the data you have passed then" |
There's all sorts of weird stuff, and it definitely looks like the kind of thing you'd see a beginner copy-pasting code and trying things out would create. The site sets a cookie containing the key-value pair "key":"value", for example.