jailbait

1.0.0 • Public • Published

jailbait

Use jailbait to protect your browser users from Self-XSS phishing attacks by displaying a clear warning message in the console (as seen in the console on Facebook, etc).

Stop!

This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a feature or “hack” someone’s account, it is a scam and will give them access to your account.

Usage

<script src="jailbait.js"></script>

Manual

Since most of the fancy ways of detecting whether or not the browser console has been opened no longer work, you could just add this script directly instead of including this module as a dependency.

console.log("%cStop!", "font: 2em sans-serif; color: yellow; background-color: red;");
console.log("%cThis is a browser feature intended for developers. If someone told you to copy-paste something here to enable a feature or “hack” someone’s account, it is a scam and will give them access to your account.", "font: 1.5em sans-serif; color: grey;");

Package Sidebar

Install

npm i jailbait

Weekly Downloads

2

Version

1.0.0

License

(MIT OR Apache-2.0)

Last publish

Collaborators

  • coolaj86