Our users should use Ctrl+Shift+J shortcut in web application.
We have tried Chrome switchers like '--disable-dev-tools' but it not works in our scenario.
You can click the "X" in the upper right-hand corner of Developer Tools to dismiss Developer Tools from your browser window.
Click User Configuration > Administrative Templates > Google Chrome > Extensions. Double click Configure extension installation whitelist policy. Select Enabled , and click Show.
If you've decided to clear out extensions in Chrome, here's how to do so: Open the Chrome browser and click on the three-dot menu icon in the upper right-corner. Click on More tools >Extensions. You'll see a list of all Chrome extensions and a toggle where you can disable every extension.
Disabling the developer tools is difficult but you can do it:
Open Chrome (Or Chromium).
Open the developer tools by pressing F12 and resize the developer tools panel by moving the splitter (Sounds strange, but trust me). You don't have to do this if you are sure that you have resized it before.
Close all Chrome windows.
On Windows 7 open the file C:\Users\YOUR USERNAME\AppData\Local\Google\Chrome\User Data\Default\Preferences
in your favourite text editor. On Linux the file is located at ~/.config/chromium/Default/Preferences
. On Windows XP it may be somewhere else. Don't know.
Search for devtools
. You will find a section which looks like this:
"devtools": { "split_location": 256 }
(That's why I told you to change the panel size in step 2. When you don't do this then this section does not exist and you have to create it manually somewhere.)
Change this section so it looks like this:
"devtools": { "disabled": true, "split_location": 256 }
Save the file.
Start Chromium. Press F12. Nothing happens. Press Ctrl+Shift+J. Nothing happens. Right-click and try to select the Inspector. Doesn't work.
Be happy.
window.oncontextmenu = function () {
return false;
}
document.onkeydown = function (e) {
if (window.event.keyCode == 123 || e.button==2)
return false;
}
Use this code to disable rightclick & F12 on ur page, but there is no way to stop a user from opening Dev Tools Menu > Tools > Developer tools
Hope this helped!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With