Windows 10中,可以使用以下PowerShell脚本来禁用Internet Explorer的Javascript错误提示

发布时间 2023-10-29 18:40:57作者: suv789

Windows 10中,可以使用以下PowerShell脚本来禁用Internet Explorer的Javascript错误提示

禁用脚本调试器

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Internet Explorer\Main" -Name "Disable Script Debugger" -Value "yes"

禁用每个脚本错误的通知

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Internet Explorer\Main" -Name "Error Dlg Displayed On Every Error" -Value "no"

Write-Output "Javascript错误提示已禁用。"


@echo off

reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Disable Script Debugger" /t REG_SZ /d "yes" /f > nul
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Error Dlg Displayed On Every Error" /t REG_SZ /d "no" /f > nul

echo Javascript错误提示已禁用。