禁用开发者模式扩展在 Chrome 中弹出 [英] Disable developer mode extensions pop up in 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.
推荐答案
官方方法禁用弹出是这样的:
打包你的扩展:进入
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:
- 下载 Chrome 组策略模板此处
- 复制
[zip]windowsadmxchrome.admx
到c:windowspolicydefinitions
- 将
[zip]windowsadmx[yourlanguage]chrome.adml
复制到c:windowspolicydefinitions[yourlanguage]chrome.adml
(不是c:windows[你的语言]
) - 在 Chrome 中,转到扩展页面:
chrome://extensions
- 检查开发者模式
- 向下滚动已禁用扩展程序的列表,并记下您要启用的扩展程序的 ID.
- 点击开始 > 运行,输入
gpedit.msc
并点击enter. - 点击用户配置 > 管理模板 > 谷歌浏览器 > 扩展
- 双击配置扩展安装白名单策略
- 选择Enabled,然后点击Show
- 在列表中,输入您在第 7 步中记下的扩展程序的 ID
- 点击确定并重启Chrome.
- Download Chrome group policy templates here
- Copy
[zip]windowsadmxchrome.admx
toc:windowspolicydefinitions
- Copy
[zip]windowsadmx[yourlanguage]chrome.adml
toc:windowspolicydefinitions[yourlanguage]chrome.adml
(notc:windows[yourlanguage]
) - In Chrome, go to the Extensions page:
chrome://extensions
- Check Developer Mode
- Scroll down the list of disabled extensions and note the ID(s) of the extensions you want to enable.
- Click Start > Run, type
gpedit.msc
and hit enter. - Click User Configuration > Administrative Templates > Google Chrome > Extensions
- Double click Configure extension installation whitelist policy
- Select Enabled, and click Show
- In the list, enter the ID(s) of the extensions you noted in Step 7
- Click OK and restart Chrome.
就是这样!
在
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屋!