Cheatcodes.js
simple library for javascript cheat codes
Install / Use
/learn @jpegzilla/Cheatcodes.jsREADME
what is this
a class for creating "hotkey" or "cheat code" actions in the browser
usage
instantiate the class and then pass in the keys you want to use as a cheat code in order as a comma-separated string or an array of strings. call start on the instance when you want the cheat code to become active.
default delay is one second! meaning that if you don't press a key in one second after pressing the first key in the combination, the cheat code resets. you can change the delay if you'd like.
syntax:
new cheatcode(code: string|array, callback: function [, delay: number])
valid keys: a-z, 0-9, f1-f12, up, down, left and right arrow keys, shift, space, minus, enter, ctrl, caps lock, alt
example:
let cheatCode = new cheatcode(
"up, up, down, down, left, right, left, right, b, a, enter",
() => {
console.log("konami code entered");
}
).start();
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate 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
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
