禁用开发者模式扩展在 Chrome 中弹出 [英] Disable developer mode extensions pop up in Chrome

查看:26
本文介绍了禁用开发者模式扩展在 Chrome 中弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从上周最新版本的 chrome (34.0.1847.116) 以来,我在使用 watir-webdriver 运行自动化测试时一直收到禁用开发者模式扩展".

Since the latest release of chrome (34.0.1847.116) last week, I have been receiving the "Disable developer mode extensions" when running automated tests using watir-webdriver.

这似乎是令人反感的扩展,但我认为这是一个潜在危险的扩展,因为它被 chromedriver 使用.

This seems to be the offensive extension but it doesn't make sense to me that this is a potentially hazardous extension given its used by the chromedriver.

任何找到解决此问题的人,因为我无法回滚到以前的版本或找到旧版本的安装程序来回滚,这对我的测试造成了严重破坏.

Anyone that has found a fix for this, as i am unable to roll back to the previous version or find an installer for an older version to roll back to and this is playing havoc with my tests.

推荐答案

官方方法禁用弹出是这样的:

  1. 打包你的扩展:进入chrome://extensions,勾选Developer mode并点击Pack extension

通过将 .crx 文件拖放到 chrome://extensions 页面来安装扩展程序.

Install the extension by dragging and dropping the .crx file into the chrome://extensions page.

如果您此时尝试重新启动 Chrome,您将收到不支持的扩展程序已禁用"弹出窗口.

You'll get an "Unsupported extensions disabled" popup if you try restarting Chrome at this point.

那么对于 Windows 7 或 Windows 8:

Then for Windows 7 or Windows 8:

  1. 下载 Chrome 组策略模板此处
  2. 复制[zip]windowsadmxchrome.admxc:windowspolicydefinitions
  3. [zip]windowsadmx[yourlanguage]chrome.adml 复制到 c:windowspolicydefinitions[yourlanguage]chrome.adml(不是c:windows[你的语言])
  4. 在 Chrome 中,转到扩展页面:chrome://extensions
  5. 检查开发者模式
  6. 向下滚动已禁用扩展程序的列表,并记下您要启用的扩展程序的 ID.
  7. 点击开始 > 运行,输入gpedit.msc并点击enter.
  8. 点击用户配置 > 管理模板 > 谷歌浏览器 > 扩展
  9. 双击配置扩展安装白名单策略
  10. 选择Enabled,然后点击Show
  11. 在列表中,输入您在第 7 步中记下的扩展程序的 ID
  12. 点击确定并重启Chrome.
  1. Download Chrome group policy templates here
  2. Copy [zip]windowsadmxchrome.admx to c:windowspolicydefinitions
  3. Copy [zip]windowsadmx[yourlanguage]chrome.adml to c:windowspolicydefinitions[yourlanguage]chrome.adml (not c:windows[yourlanguage])
  4. In Chrome, go to the Extensions page: chrome://extensions
  5. Check Developer Mode
  6. Scroll down the list of disabled extensions and note the ID(s) of the extensions you want to enable.
  7. Click Start > Run, type gpedit.msc and hit enter.
  8. Click User Configuration > Administrative Templates > Google Chrome > Extensions
  9. Double click Configure extension installation whitelist policy
  10. Select Enabled, and click Show
  11. In the list, enter the ID(s) of the extensions you noted in Step 7
  12. Click OK and restart Chrome.

就是这样!

  1. chrome://extensions

使用 Load unpacked 卸载导致弹出窗口的扩展.

Uninstall the extension that causes the popup using the Load unpacked.

点击Pack extension,找到并选择包含扩展文件的文件夹.如果没有私钥文件,请勿输入.

Click on Pack extension, and find and select the folder containing the extension files. Don't enter the private key file if you don't have it.

单击打包扩展..crx.pem 文件将在扩展的根目录附近创建.使用 .crx 文件安装扩展并保持 .pem 文件安全.

Click Pack extension. A .crx and .pem file will be created near the root directory of the extension. Install the extension using the .crx file and keep the .pem file safe.

.crx安装的扩展ID复制到白名单并重启Chrome.

Copy the .crx installed extension ID to the whitelist and restart Chrome.

弹出窗口应该消失了.

这篇关于禁用开发者模式扩展在 Chrome 中弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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