From 8b080a808158d4d4f1b9522cef197b8c2dd7aa43 Mon Sep 17 00:00:00 2001 From: mapleafgo Date: Wed, 8 Jan 2025 10:46:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game.md | 2 +- pkg/browser/browser.go | 2 ++ pkg/ports.go | 7 ------- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 pkg/ports.go diff --git a/game.md b/game.md index 66d37a8..d76a59d 100644 --- a/game.md +++ b/game.md @@ -56,7 +56,7 @@ { // 发卡执行时间,单位秒 "action": 0, - // 等待时间,单位秒 + // 等待时间,单位秒(不能小于 1) "wait": 10 } ``` diff --git a/pkg/browser/browser.go b/pkg/browser/browser.go index 68f3eec..b547ebb 100644 --- a/pkg/browser/browser.go +++ b/pkg/browser/browser.go @@ -16,6 +16,8 @@ func OpenApp(c context.Context, url string) { Delete(flags.Env). Set("kiosk"). Set("hide-scrollbars"). + Set("disable-sync"). + Set("disable-features", "GoogleSignin,IdentityConsistency,OmniboxUIExperimentation,GoogleSearch,Autofill,SafeSearch,SpeechRecognition"). Delete("disable-site-isolation-trials"). Bin(path) p := l.MustLaunch() diff --git a/pkg/ports.go b/pkg/ports.go deleted file mode 100644 index 4febd40..0000000 --- a/pkg/ports.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "game-driver/pkg/relay" - -func main() { - relay.PrintPorts() -}