Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rednexie/no-console.js
- Owner: Rednexie
- Created: 2023-03-04T23:07:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T14:18:03.000Z (12 months ago)
- Last Synced: 2023-11-16T15:36:15.466Z (12 months ago)
- Topics: 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
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.