You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何禁用Chrome“恢复页面?Chrome未正常关闭”等浏览器提示弹窗

解决方案

在你现有的Chrome启动参数列表中新增3个配置项即可完全屏蔽“恢复页面”提示:

  • --disable-session-crashed-bubble:直接禁用崩溃后弹出的恢复提示气泡
  • --no-restore:启动时跳过所有上一次会话的恢复逻辑
  • --hide-crash-restore-bubble:作为补充配置,避免特殊场景下提示漏出

修改后的启动参数参考如下(原有参数全部保留,仅新增前3行即可):

const chromeSwitches = [
      // 新增屏蔽恢复提示的参数
      "--disable-session-crashed-bubble",
      "--no-restore",
      "--hide-crash-restore-bubble",
      // 以下为你原有参数,无需修改
      `--user-data-dir=${tasksDataDirPath+'\\'+taskName}`,
      `--remote-debugging-port=${availablePort}`,
      "--arc-disable-locale-sync",
      "--disable-features=IsolateOrigins,site-per-process",
      "--disable-component-extensions-with-background-pages",
      "--disable-background-timer-throttling",
      "--disable-backgrounding-occluded-windows",
      "--disable-renderer-backgrounding",
      "--no-first-run",
      "--password-store=basic",
      "--use-mock-keychain",
      "--disable-extensions",
      "--disable-default-apps",
      "--disable-features=Translate",
      "--disable-background-networking",
      "--disable-sync",
      "--metrics-recording-only",
      "--mute-audio",
      "--no-default-browser-check",
      "--enable-remote-debugging"
    ];

如果复用固定的用户数据目录,启动前可以先删除该目录下的SingletonLock、SingletonCookie、SingletonSocket三个锁文件,避免Chrome误判进程异常退出触发提示。

内容的提问来源于stack exchange,提问作者SunAwtCanvas

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.28 09:45:04