Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rednexie/no-console.js

javascript dev tools blocker/source code protector
https://github.com/rednexie/no-console.js

browser browser-devtools client client-side code-porting developer-tools devtools disable-devtool disable-devtools discord-webhook discord-webhooks javascript js protector source-code-protection vanilla-js vanillajs

Last synced: 17 days ago
JSON representation

javascript dev tools blocker/source code protector

Awesome Lists containing this project

README

        

# no-console.js

Javascript dev-tools blocker and page source protector.

https://cdn.jsdelivr.net/gh/Rednexie/rednexie.github.io@main/cdn/noconsole.js

# Functionality

No-Console.js is used for blocking people from accessing:

- Developer Tools, [ F12 ]
- Javascript Console, [ CTRL + SHIFT + J ]
- Inspect Elements, [ CTRL + SHIFT + I ]
- View Page Source, [ CTRL + U ]
- Save Page Source, [ CTRL+ S ]
- Context Menu; [ Right Click]
- Firefox Inspect Element [ CTRL + SHIFT + C ]
- Firefox Javascript Console [ CTRL + SHIFT + K ]

as well as logging the user ip and the event description with discord webhook API.

no-console.js has an option to auto disable:
- Autocorrect functionality in Javascript Console.
- Document Design Mode
- Javascript Console Output.

# Usage

The constant `WebhookURL` is your discord webhook api url.

Don't forget to add your webhook url, or change the constant `log` to false. This disables webhook api log feature.

If you don't want to block the actions, only log them, change the constant `block` to false. This disables the blocking feauture.

If you want to let your clients use context menu, change the constant `rightclick` to false. This enables context menu back.

# Possible Updates:
- Detection of open dev tools (document unfocus).

If you don't want to disable autocorrect and design mode, change the constant `disable` to false.

The constant `delay` indicates the delay between clearing the console. It is defaulted to 100 milliseconds.