From 2b41421864623eb034a7474c64afef1404adf1f9 Mon Sep 17 00:00:00 2001 From: gdh1995 Date: Fri, 16 Aug 2024 04:14:32 +0800 Subject: [PATCH] passEsc: add gitlab quick open --- _locales/en/messages.json | 2 +- background/settings.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b655df8d3..ad8575b8a 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -115,7 +115,7 @@ "#read-only-cursor-text-area,.monaco-mouse-cursor-text[aria-autocomplete=none],.CodeMirror>div>textarea[readonly=''][style]" }, "121": { "message": -"[aria-controls],[role=combobox],#kw.s_ipt,input[placeholder$$=搜索],input[type=search][name=q],.monaco-inputbox>div>textarea[style]" +"[aria-controls],[role=combobox],#kw.s_ipt,input[placeholder$$=搜索],input[type=search][name=q],input[role=searchbox],.monaco-inputbox>div>textarea[style]" }, "200": { "message": "http://www.w3.org/1999/xhtml" }, "0": { "message": "Open link in current tab" }, diff --git a/background/settings.ts b/background/settings.ts index 91526def8..51ee8bf5a 100644 --- a/background/settings.ts +++ b/background/settings.ts @@ -383,6 +383,7 @@ saladict@crimx.com` || "[aria-controls],[role=combobox],#kw.s_ipt" // MS Bing / Google / Baidu + ",input[placeholder$=\u641c\u7d22]" // some Chinese websites + ",input[type=search][name=q]" // Bing search result page + + ",input[role=searchbox]" // Gitlab Quick Open by "/" + ",.monaco-inputbox>div>textarea[style]" // Monaco find input , preferBrowserSearch: true,