Tuesday, February 21, 2012

Disable Google Chrome Developer Tools

Finally, I found a way to disable google chrome developer tools. I need it because I have some browser based application that I need to deploy, and google chrome is really suitable for my need. The only thing that prevented me doing so is the dev tools. I don't want user to play around with the dev tools, do some hacking and stuff. No way!
Now, here is how to disable devtools:
Edit ~/.config/google-chrome/Default/Preferences
On Mac OSX: ~/Library/Application Support/Google/Chrome/Default
Add "disabled": true to the "devtools" key, so it becomes like the following:
"devtools": { "disabled": true, "split_location": 256 }
Save it, and restart browser. Done!
Here is where I originally found the solution.

3 comments:

  1. I'm sorry... i don't really understeand how to disable the Developer Tools of Google Chrome, i mean, where is tha menu?? can u please give more details?

    ReplyDelete
    Replies
    1. Go to Tools --> Developer Tools on the menu.

      Delete
  2. it is possible to do that form a javascript file, i mean a chrome extension?
    thanks

    ReplyDelete