Chrome提示:"请停用以开发者模式运行的扩展程序"的解决办法
chrome用户在安装了一些第三方的chrome插件后,每次打开浏览器的时候都会出现“请停用以开发者模式运行的扩展程序”的提示,只有每次点击取消之后才能正常使用扩展。如下图所示
每次都要点击非常的麻烦,那么有没有什么方法可以永久性的解决chrome“请停用以开发者模式运行的扩展程序”的提示的方法呢?在网上找了几种方法。
一、通过组策略添加扩展程序白名单的方式屏蔽了这种提示。(注意:此方法仅适用windows系统)
3.然后打开“本地组策略编辑器”,在左侧的树形菜单中,依次展开:计算机配置->管理模版,在“计算机配置”-“管理模板”中右键选择“添加/删除模板”安装刚才的那个chrome.adm文件,安装成功之后就可以在“管理模板”-“经典管理模板(ADM)”-“Google”下面看到“Google Chrome”了。这里需要说明两点,一是这个下面可能会有两个Google Chrome,一个有推荐字样,看看哪个下面有“扩展程序”,通常是不带推荐的那个;另外一点是按照chrome.adm的过程中如果策略编辑器长时间停止响应的话可以强制将其关闭之后在打开就可以了,不影响后面的操作。
6.输入完成后点击确定保存,并关闭本地组策略编辑器,并在Chrome扩展管理界面关闭开发者模式,就可以正常地使用Chrome插件,并解决谷歌的停用开发者模式的警告了。
二、打包导出报警提示的chrome插件重新安装
如果以上的方法还不行的话,那么就尝试找出是哪个插件导致提示“请停用以开发者模式运行的扩展程序”,然后将其打包导出扩展程序,方法参照:怎么从Chrome浏览器中导出扩展程序为crx文件?“打包扩展程序”这样在相应目录生成了 .crx 文件,然后直接拖到 chrome://extensions/ chrome扩展程序页面进行安装就行!如果不知道怎么安装CRX文件,请参照:怎么在谷歌浏览器中安装.crx扩展名的离线chrome插件
三、高手程序代码实现(说实话小编不懂,但是网友说给力)
复制以下代码并且另存为DevWarningPatch.bat 到任意位置,退出chrome,右键管理员运行即可。
<# :
@echo off
copy/b "%~f0" "%temp%\%~n0.ps1" >nul
powershell -Version 2 -ExecutionPolicy bypass -noprofile "%temp%\%~n0.ps1" "%cd% " "%~1"
del "%temp%\%~n0.ps1"
pause
exit /b
#>
param([string]$cwd='.', [string]$dll)function main {"Chrome 'developer mode extensions' warning disabler v1.0.10.20170114`n"$pathsDone = @{}if ($dll -and (gi -literal $dll)) {doPatch "DRAG'n'DROPPED" ((gi -literal $dll).directoryName + '\')exit}doPatch CURRENT ((gi -literal $cwd).fullName + '\')('HKLM', 'HKCU') | %{ $hive = $_('', '\Wow6432Node') | %{$key = "${hive}:\SOFTWARE$_\Google\Update\Clients"gci -ea silentlycontinue $key -r | gp | ?{ $_.CommandLine } | %{$path = $_.CommandLine -replace '"(.+?\\\d+\.\d+\.\d+\.\d+\\).+', '$1'doPatch REGISTRY $path}}}
}function doPatch([string]$pathLabel, [string]$path) {if ($pathsDone[$path.toLower()]) { return }$dll = $path + "chrome.dll"if (!(test-path -literal $dll)) {return}"=======================""$pathLabel PATH $((gi -literal $dll).DirectoryName)""`tREADING Chrome.dll..."$bytes = [IO.File]::ReadAllBytes($dll)# process PE headers$BC = [BitConverter]$coff = $BC::ToUInt32($bytes,0x3C) + 4$is64 = $BC::ToUInt16($bytes,$coff) -eq 0x8664$opthdr = $coff+20$codesize = $BC::ToUInt32($bytes,$opthdr+4)$imagebase32 = $BC::ToUInt32($bytes,$opthdr+28)# patch the flag in data section$data = $BC::ToString($bytes,$codesize)$flag = "ExtensionDeveloperModeWarning"$stroffs = $data.IndexOf($BC::ToString($flag[1..99]))/3 - 1if ($stroffs -lt 0) {write-host -f red "`t$flag not found"return}$stroffs += $codesizeif ($bytes[$stroffs] -eq 0) {write-host -f darkgreen "`tALREADY PATCHED"return}$exe = join-path (split-path $path) chrome.exe$EA = $ErrorActionPreference$ErrorActionPreference = 'silentlyContinue'while ((get-process chrome -module | ?{ $_.FileName -eq $exe })) {forEach ($timeout in 15..0) {write-host -n -b yellow -f black `"`rChrome is running and will be terminated in $timeout sec. "write-host -n -b yellow -f darkyellow "Press ENTER to do it now. "if ([console]::KeyAvailable) {$key = $Host.UI.RawUI.ReadKey("AllowCtrlC,IncludeKeyDown,NoEcho")if ($key.virtualKeyCode -eq 13) { break }if ($key.virtualKeyCode -eq 27) { write-host; exit }}sleep 1}write-hostget-process chrome | ?{$_.MainWindowHandle.toInt64() -and ($_ | gps -file).FileName -eq $exe} | %{"`tTrying to exit gracefully..."if ($_.CloseMainWindow()) {sleep 1}}$killLabelShown = 0get-process chrome | ?{($_ | gps -file | select -expand FileName) -eq $exe} | %{if (!$killLabelShown++) {"`tTerminating background chrome processes..."}stop-process $_ -force}sleep -milliseconds 200}$ErrorActionPreference = $EA$bytes[$stroffs] = 0"`tPATCHED $flag flag"# patch the channel restriction code for stable/beta$code = $BC::ToString($bytes,0,$codesize)$rxChannel = '83-F8-(?:03-7D|02-7F)'# old code: cmp eax,3; jge ...# new code: cmp eax,2; jg ...$chanpos = 0try {if ($is64) {$pos = 0$rx = [regex]"$rxChannel-.{1,100}-48-8D"do {$m = $rx.match($code,$pos)if (!$m.success) { break }$chanpos = $m.index/3 + 2$pos = $m.index + $m.length + 1$offs = $BC::ToUInt32($bytes,$pos/3+1)$diff = $pos/3+5+$offs - $stroffs} until ($diff -ge 0 -and $diff -le 4096 -and $diff % 256 -eq 0)if (!$m.success) {$rx = [regex]"84-C0.{18,48}($rxChannel)-.{30,60}84-C0"$m = $rx.matches($code)if ($m.count -ne 1) { throw }$chanpos = $m[0].groups[1].index/3 + 2}} else {$flagOffs = [uint32]$stroffs + [uint32]$imagebase32$flagOffsStr = $BC::ToString($BC::GetBytes($flagOffs))$variants = "(?<channel>$rxChannel-.{1,100})-68-(?<flag>`$1-.{6}`$2)","68-(?<flag>`$1-.{6}`$2).{300,500}E8.{12,32}(?<channel>$rxChannel)","E8.{12,32}(?<channel>$rxChannel).{300,500}68-(?<flag>`$1-.{6}`$2)"forEach ($variant in $variants) {$pattern = $flagOffsStr -replace '^(..)-.{6}(..)', $variant"`tLooking for $($pattern -replace '\?<.+?>', '')..."$minDiff = 65536foreach ($m in [regex]::matches($code, $pattern)) {$maybeFlagOffs = $BC::toUInt32($bytes, $m.groups['flag'].index/3)$diff = [Math]::abs($maybeFlagOffs - $flagOffs)if ($diff % 256 -eq 0 -and $diff -lt $minDiff) {$minDiff = $diff$chanpos = $m.groups['channel'].index/3 + 2}}}if (!$chanpos) { throw }}} catch {write-host -f red "`tUnable to find the channel code, try updating me"write-host -f red "`thttp://stackoverflow.com/a/30361260"return}$bytes[$chanpos] = 9"`tPATCHED Chrome release channel restriction""`tWriting to a temporary dll..."[IO.File]::WriteAllBytes("$dll.new",$bytes)"`tBacking up the original dll..."move -literal $dll "$dll.bak" -force"`tRenaming the temporary dll as the original dll..."move -literal "$dll.new" $dll -force$pathsDone[$path.toLower()] = $truewrite-host -f green "`tDONE.`n"[GC]::Collect()
}main
Chrome提示:"请停用以开发者模式运行的扩展程序"的解决办法相关推荐
- 【Windows 问题系列第 16 篇】如何去除 Chrome 中的请停用以开发者模式运行的扩展程序
这是[Windows 问题系列第 16 篇],如果觉得有用的话,欢迎关注专栏. 你是否遇到过这样的问题,每次登陆 Chrome 浏览器的时候,右上角总会弹出来下面这个界面 让你停用以开发者模式运行的扩 ...
- Selenium启动Chrome浏览器提示“请停用以开发者模式运行的扩展程序”的解决办法
安装了selenium,python运行下面代码: from selenium import webdriverbrowser = webdriver.Chrome() browser.get('ht ...
- 谷歌浏览器——请停用以开发者模式运行的扩展程序
浏览器提示:请停用以开发者模式运行的扩展程序 解决方案:使用补丁解决,将补丁放入包含chrome.dll文件的目录下执行.如果出现执行不成功,请尝试右键以管理员权限运行.执行结果只要有一个显示执行成功 ...
- 如何完全屏蔽Chrome的提示:请停用以开发者模式运行的扩展程序
参考链接: chrome怎么安装非官方市场的插件? https://www.zhihu.com/question/24027794 屏蔽Google Chrome安装第三方插件之后反复提示" ...
- 彻底禁用Chrome的“请停用以开发者模式运行的扩展程序”提示
前言 作为一个前端程序员,难免会有一些专属自己的小扩展,没必要每一个都发到Chrome应用商店去,虽然可以勾选"开发者模式"来运行本地插件,但是每次启动都会有一个烦人的" ...
- 请停用以开发者模式运行的扩展程序
解决 chrome "请停用以开发者模式运行的扩展程序'' 弹窗问题 @说在前头 系统是win10或win7,Chrome 是 76.0 版本,新版本(目前是Chrome 76.0),新版本 ...
- 请停用以开发者模式运行的扩展程序?搞定谷歌浏览器插件弹窗
苏生不惑第137篇原创文章,将本公众号设为星标,第一时间看最新文章. 关于谷歌浏览器之前写过很多实用扩展: 那些我常用的 Chrome 扩展 那些我常用的 Chrome 扩展(二) 那些我常用的 Ch ...
- 彻底禁用chrome请停用以开发者模式运行的扩展程序弹框
首先上图 怎么解决呢? 进入安装目录-->下图目录(一串数字的目录) 2. 找到chrome.dll 3.下载patch.exe 下载网址 https://itdocs.pipipan.co ...
- Google浏览器一开启就提示“请停用以开发者模式运行的扩展程序“解决方案
参考文章: 知乎链接 step1 :打开命令行 输入regedit step2:依次点击HKEY_CURRENT_USER\Software\Google\Update\ClientState{8A6 ...
最新文章
- 一人之力,刷爆三路榜单!信息抽取竞赛夺冠经验分享
- mysql的limit使用方法
- IDEA的GsonFormat插件--将json字符串直接实例化成类
- 接雨水—leetcode42
- .Net System.Object类介绍
- 类的6个默认成员函数:构造函数、析构函数、拷贝构造函数、重载运算符、三/五法则
- Thread 中的 中断
- 鱼刺少的鱼都有哪些 这几种鱼刺少又美味
- Android基于百度OCR识别图片中的文字
- 触动小精灵似乎已断开与互联网的连接解决方法
- Hadoop官网查看手册
- 智安网络丨居安思危·洞见未来 — — 智安网络安全周报
- [C程序设计]输出所有的“水仙花数”。
- IP地址 、域名、 URL、 端口
- 中国石油大学《计算机网络课程设计》第三次在线作业
- 【实战】前端必会 —— 微信小程序引入背景图
- 【新人入门】HTML——前端纯小白新手入门
- css实现渐变图片——曲线救国解决笔记
- 从程序员的角度看人类通信史
- 网络安全劳动力发展报告