Browse Source

配置文件目录修改及加速运行

zhensolid 7 months ago
parent
commit
749aa22ebd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      日报工具/autowrite_day.py

+ 3 - 1
日报工具/autowrite_day.py

@@ -486,7 +486,9 @@ async def run(playwright):
                 '--disable-blink-features=AutomationControlled',
                 '--profile-directory=Default',
                 '--no-first-run',
-                '--no-default-browser-check'
+                '--no-default-browser-check',
+                '--disable-extensions',  # 禁用所有扩展
+                '--disable-gpu'  # 禁用GPU加速
             ],
             ignore_default_args=['--enable-automation']
         )