如何从Google Chrome中卸载/移除开发人员工具? [英] How to uninstall/remove Developer Tools from Google Chrome?

查看:751
本文介绍了如何从Google Chrome中卸载/移除开发人员工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的用户应该在网络应用程序中使用Ctrl + Shift + J快捷键。



我们已经尝试过Chrome切换器,如'--disable-dev-tools'在我们的场景中工作。

解决方案

禁用开发人员工具很困难,但您可以这样做:


  1. 打开Chrome(或Chromium)。

  2. 通过移动分离器调整开发人员工具面板的大小(听起来很奇怪,但请相信我)。如果您确定之前已调整大小,则无需这样做。 关闭所有Chrome浏览器窗口。


  3. 在Windows 7上打开文件 C:\ Users \ You USERNAME\AppData\Local\Google\Chrome\User Data\Default \ Preferences 在您最喜爱的文本编辑器中。在Linux上,该文件位于〜/ .config / chromium / Default / Preferences 。在Windows XP上它可能在别的地方。不知道。


  4. 搜索 devtools 。您会看到一个如下所示的部分:



    devtools:{split_location:256}



    (这就是为什么我告诉你在步骤2中更改面板大小的原因。当你不这样做时,这个部分不存在,你必须在某处手动创建它。

  5. 更改此部分,使其看起来像这样:

    devtools:{disabled:true,split_location:256}


  6. 保存文件。


  7. 启动Chromium。按F12。什么都没发生。按下Ctrl + Shift + J。什么都没发生。右键单击并尝试选择检查器。无效。

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

    解决方案

    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.

    这篇关于如何从Google Chrome中卸载/移除开发人员工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆