Author: | jpegzilla |
---|---|
Views Total: | 82 views |
Official Page: | Go to website |
Last Update: | November 6, 2019 |
License: | MIT |
Preview:

Description:
A tiny and standalone JavaScript plugin that adds a cheat code (hotkey, shortcut key) to the webpage.
Use the library to trigger a custom action after a keyboard sequence is correctly entered.
How to use it:
1. Download and insert the JavaScript library into the page.
<script src="cheatcodes.min.js"></script>
2. Initialize the library and define a sequence of keys used to trigger the action.
let cheatCode = new cheatcode( "up, up, down, down", () => { alert("Custom Action Here"); } )
3. Enable the cheat code and done.
cheatCode.start();