-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/AlphaGameDeveloper/AlphaGam…
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
_posts/2024-03-15-konamirickroll-add-a-rickroll-to-site.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <head> 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 <body> section with a rickroll. This is easily stopped by reloading the webpage. | ||
|
||
**Try it on this site!** | ||
|
||
Cheers, | ||
Damien Boisvert (AlphaGameDeveloper) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.