This Website Accidentally Left Promo Codes in Their Source Code

Finding interesting things by inspecting websites

Jacob Bergdahl
JavaScript in Plain English
6 min readMar 3, 2021

--

Some time ago, I exposed an e-shop for blatantly lying about the number of people viewing their products. Their public source code contained a JavaScript function that randomized the number. Since then, the administrators of the e-shop have quietly removed the code from their website.

Well, we are once again exploring the source code of a website, but this time there’s nothing crooked involved. The website that I’ll…

--

--