Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaGameDeveloper committed Mar 19, 2024
2 parents 8c168d4 + f15d6a6 commit f411c82
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions _posts/2024-03-15-konamirickroll-add-a-rickroll-to-site.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "KonamiRickroll: Add a rickroll to your site via Konami code"
---
Ever wanted to have a little easter egg in your website? I sure did! With my new JavaScript script, you can now add an easteregg rickroll to your website<!--more-->
by typing this combo: **UP, UP, DOWN, DOWN, LEFT, RIGHT, LEFT, RIGHT, B, A**. This is the Konami combo, and it is well-known, so you can be sure that someone
will find it someday! Add it to your site by just copy and pasting this HTML code to your &lt;head&gt; section:
```html
<script src="https://www.alphagame.dev/assets/js/secret-jam-session.js"></script>
```
This is very plug-and-play, and it should work with any website without any additional config.

## How it works
KonamiRickroll works by listening for the above pattern, and then replaces the webpage &lt;body&gt; section with a rickroll. This is easily stopped by reloading the webpage.

**Try it on this site!**

Cheers,
Damien Boisvert (AlphaGameDeveloper)
2 changes: 1 addition & 1 deletion assets/js/secret-jam-session.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f411c82

Please sign in to comment.