https://github.com/abhishek6262/disable-inspect
Disable web inspector for the website
https://github.com/abhishek6262/disable-inspect
browser inspect inspector javascript
Last synced: 6 months ago
JSON representation
Disable web inspector for the website
- Host: GitHub
- URL: https://github.com/abhishek6262/disable-inspect
- Owner: abhishek6262
- License: mit
- Created: 2022-06-20T16:26:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T20:51:03.000Z (over 3 years ago)
- Last Synced: 2025-02-09T01:13:35.580Z (8 months ago)
- Topics: browser, inspect, inspector, javascript
- Language: TypeScript
- Homepage:
- Size: 218 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disable Inspect
The package disables the inspect element feature of the browser by disabling right-click and shortcut keys which can open the elements inspector for the website.
## Installation
The package can be utilized in your preferred way. You can either use the direct link of the file through the CDN or install it using the **npm registry**.
### Installation using the CDN
To use the package through the CDN link simply copy and paste the code below in the footer section of your HTML file.
```
disableInspect();
```### Installation using the NPM Registry
To install the package from the npm registry, copy and paste the command below in the terminal.
```
npm i disable-inspect
```Next, import the method `disableInspect` from the package and call it in the file you want to use it.
```
import { disableInspect } from "disable-inspect";disableInspect();
```## Credits
- [Abhishek Prakash](https://github.com/abhishek6262)
## Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities. I will appreciate that a lot. Also please add your name to the credits.
Kindly [follow me on twitter](https://twitter.com/_the_shade)!
## Support
Moreover, To keep this and my other open source projects ongoing You can also support me on Patreon by clicking on the button below.
[
](https://www.patreon.com/bePatron?u=5563585)
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.