
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jquery-cheat-code-plugin
Advanced tools
A jQuery plugin for handling cheat code inputs in your web app
jquery-cheat-code-plugin is a small jQuery plugin that defines the custom 'cheatCodeEntered' event. This event consists in a sequence of key presses that are fully customizable, on any element of the DOM that the user can set.
Check out the jsfiddle demo!
The plugin defaults to the Konami Code (up, up, down, down, left, right, left, right, B, A, Start), with the keys mapped for the standard US keyboard and the sequence being listened on the whole document.
To include it on your project, you have to add one of these lines on the document ready handler:
var code = new CheatCodeEventHandler();
var code = new CheatCodeEventHandler(params);
The first one creates a default 'cheatCodeEntered' event, and the second one has an argument 'params', that consists of an object with this possible elements:
The class CheatCodeEventHandler provides with the following functions:
cheatSequence() Gets the array representing the cheat sequence.
cheatSequence(sequence) Sets the array representing the cheat sequence.
inputMapping() Gets the object literal representing the key mapping.
inputMapping(mapping) Sets the object literal representing the key mapping.
currentState() Gets the current state of the sequence, i.e. the number of keys pressed correctly in a row. This number is reseted every time the user makes a mistake.
totalStates() The total number of inputs that the cheat consists in.
FAQs
A jQuery plugin for handling cheat code inputs in your web app
We found that jquery-cheat-code-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.