Konamicode.js
Easter-egg your website with the konami-code
Install / Use
/learn @ddprrt/Konamicode.jsREADME
konamicode.js
Easter-egg your website with the konami-code! Every developer loves to add some hidden, tiny bits and pieces into his website or web application once the project goes into its final and stressful phase.
Those easter-eggs can now be done with the hottest cheat-code ever: The Konami Code
Bower package
Install konamicode.js with Bower
bower install konamicode.js
The Konami Code
Press the following keys in order:
↑ ↑ ↓ ↓ ← → ← → B A
(in words. Up Up Down Down Left Right Left Right B A)
Usage
Very simple:
konamicode(document.body, function() {
alert('Mega Man now has Metal Blade, even though he is not from Konami!')
});
If you use the jQuery extension, you can do it the jQuery way:
$('body').konamicode(function() {
alert('Now Mega Man has also Bubble Lead. Thanks Konami!');
});
It is also possible to add more callback functions to one element. They are executed one after the other.
konamicode(document.body, function() {
alert('Mega Man now has Metal Blade, even though he is not from Konami!');
});
konamicode(document.body, function() {
alert('Mega Man got Atomic Fire');
});
Inclusion
Just download either konamicode.min.js oder konamicode.jquery.min.js. You don't need both, but you need the latter if you want to use it with jQuery.
If you don't want to use the minified version, include the js files from the src directory. You need both if you want to use it with jQuery.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
