Huff Post, Konami Code and Pet Photos Makes the News More Palatable
Tags: javascript, konami, opensource, frivolous
Published: 2019-04-10 21:01:55

---
title: Huff Post, Konami Code and Pet Photos Makes the News More Palatable
published: true
tags: javascript,konami,open-source,frivolous
canonical_url: https://george.mand.is/2019/04/huff-post-konami-code-and-pet-photos-makes-the-news-more-palatable/
---

I've always kept tabs on my public profile out on the web. Sometimes it's surprising what you can find. You might have [your own Google Scholar page](/2018/03/does-a-google-scholar-page-help-seo/) because of a college paper you wrote when you were 18 or find out you were scheduled to speak at a conference in another country well before the organizers reached out to you.

Today I found out an old project of mine is being used on HuffPost—or should I say, FluffPost?

![FluffPost](https://moonbase.georgemandis.com/huffpost-konami/fluffpost-5.jpg)

Go check it out! If you go to the [HuffPost's homepage](https://huffpost.com) and enter the [Konami Code](https://en.wikipedia.org/wiki/Konami_Code) all of the images turn into adorable photos of people's pets.

It has not been the best couple years for happy, uplifting news, but seeing some of these headlines accompanied by cute dogs and cats made it a lot more palatable. Cases in point:

![Feisty Mnuchin](https://moonbase.georgemandis.com/huffpost-konami/fluffpost-3.jpg)

Mnuchin definitely looks feisty. And that team Barr is assembling looks like serious business. I'm sure they'll get to the bottom of things.

## How did I find this?

I accidentally stumbled across this not via a Google search but by doing a search for my name on GitHub in other people's code repositories. This might seem a little odd, but if you've created or contributed to a lot of open-source projects it's an interesting view into how people might actually be using what you've made.

It's also a good way to see if a private repository you handed off to another development agency accidentally found it's way into the public... but that's a different story!

In looking for my name I came across references to a project of mine in what looked like code scraped from the homepage of Huff Post. The code contains comments with information about licensing, the version and a byline with my name, which is what helped me find this.

I decided to go the Huff Post and try the code out. When I entered the Konami Code and saw the pets I laughed, and when I went to view the source code for the page I was tickled to see my name and code sitting there.

## About the project

[Konami-JS](https://github.com/snaptortoise/konami-js) is an open-source easter-egg project I made back in 2009. It lets you add an Easter Egg to any website when a visitor enters the Konami Code. The differentiator, at the time, was my project worked on mobile devices.

Most of what I find are people putting Konami Code easter eggs on their GitHub pages, blogs and other personal projects. Occasionally it pops up in bigger places like Marvel.com or Newsweek. I recently discovered it was even being used on [Tesla's online design tool](https://teslamotorsclub.com/tmc/threads/easter-egg-in-the-design-studio-konami-code.7944/) back in 2012—I found remnants of it on archive.org [here](https://web.archive.org/web/20130408184419js_/http://www.teslamotors.com/sites/all/themes/tesla/configurator/js/libs/konami.1.3.3.pack.js?c). I guess now I can add Huff Post to that list!

By modern JavaScript standards the script is kind of archaic, but it lives in a sort of gray area where I'm not sure it stands to gain much by modernizing it. The code footprint is compact but but understandable and it's easy to plop into any existing project with a quick copy-and-paste. Beginners can and do use my code, all the time.

As the barrier to entry into web development seems to grow a little steeper each year, I'm happy to have contributed a project that's being used by novices and high-traffic websites alike. I'm also happy that it's a joyful, frivolous contribution that's been mostly used to make the web a fun and sillier place.

Watch me give a talk about my experience maintaining this "frivolous but popular" project at [OdessaJS](https://odessajs.org) in 2017:

[https://www.youtube.com/watch?v=F3xI3ps7syI](https://www.youtube.com/watch?v=F3xI3ps7syI)

Lastly, I _do_ have open issues and discussions [on GitHub](https://github.com/snaptortoise/konami-js) surrounding what Konami-JS 2.0 could/should look like, a decade later. Your contributions are welcome.