Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall/remove Developer Tools from Google Chrome?

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.

like image 369
Alexander Byndyu Avatar asked Apr 17 '11 06:04

Alexander Byndyu


People also ask

How do I Uninstall dev tools?

You can click the "X" in the upper right-hand corner of Developer Tools to dismiss Developer Tools from your browser window.

How do I get rid of developer extensions?

Click User Configuration > Administrative Templates > Google Chrome > Extensions. Double click Configure extension installation whitelist policy. Select Enabled , and click Show.

How do I permanently disable extensions in Chrome?

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.


2 Answers

Disabling the developer tools is difficult but you can do it:

  1. Open Chrome (Or Chromium).

  2. 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.

  3. Close all Chrome windows.

  4. 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.

  5. 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.)

  6. Change this section so it looks like this:

    "devtools": { "disabled": true, "split_location": 256 }

  7. Save the file.

  8. Start Chromium. Press F12. Nothing happens. Press Ctrl+Shift+J. Nothing happens. Right-click and try to select the Inspector. Doesn't work.

  9. Be happy.

like image 140
kayahr Avatar answered Oct 25 '22 04:10

kayahr


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!!

like image 45
User2364902 Avatar answered Oct 25 '22 04:10

User2364902