Skip to content

Commit 663cd55

Browse files
committed
update verify-search-engine-configs.mjs
1 parent db91ceb commit 663cd55

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/scripts/verify-search-engine-configs.mjs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const config = {
3333
},
3434
startpage: {
3535
inputQuery: ["input[name='query']"],
36-
sidebarContainerQuery: ['.layout-web__sidebar.layout-web__sidebar--web'],
37-
appendContainerQuery: ['.layout-web__body.layout-web__body--desktop'],
38-
resultsContainerQuery: ['.mainline-results'],
36+
sidebarContainerQuery: ['#sidebar'],
37+
appendContainerQuery: [],
38+
resultsContainerQuery: ['#main'],
3939
},
4040
baidu: {
4141
inputQuery: ["input[id='kw']"],
@@ -44,7 +44,7 @@ const config = {
4444
resultsContainerQuery: ['#content_left', '#results'],
4545
},
4646
kagi: {
47-
inputQuery: ["textarea[name='q']"],
47+
inputQuery: ["input[name='q']", "textarea[name='q']"],
4848
sidebarContainerQuery: ['.right-content-box'],
4949
appendContainerQuery: ['#_0_app_content'],
5050
resultsContainerQuery: ['#main', '#app'],
@@ -57,7 +57,7 @@ const config = {
5757
},
5858
naver: {
5959
inputQuery: ["input[name='query']"],
60-
sidebarContainerQuery: ['#sub_pack'],
60+
sidebarContainerQuery: ['#main_pack'],
6161
appendContainerQuery: ['#content'],
6262
resultsContainerQuery: ['#main_pack', '#ct'],
6363
},
@@ -88,17 +88,23 @@ const config = {
8888
}
8989

9090
const urls = {
91-
google: ['https://www.google.com/search?q=hello'],
91+
google: [
92+
/*'https://www.google.com/search?q=hello'*/
93+
],
9294
bing: ['https://www.bing.com/search?q=hello'],
93-
yahoo: ['https://search.yahoo.com/search?p=hello', 'https://search.yahoo.co.jp/search?p=hello'],
95+
yahoo: [
96+
/*'https://search.yahoo.com/search?p=hello', */ 'https://search.yahoo.co.jp/search?p=hello',
97+
],
9498
duckduckgo: [],
9599
startpage: [], // need redirect and post https://www.startpage.com/do/search?query=hello
96100
baidu: ['https://www.baidu.com/s?wd=hello'],
97101
kagi: [], // need login https://kagi.com/search?q=hello
98102
yandex: [], // need cookie https://yandex.com/search/?text=hello
99103
naver: ['https://search.naver.com/search.naver?query=hello'],
100104
brave: [],
101-
searx: ['https://searx.tiekoetter.com/search?q=hello'],
105+
searx: [
106+
/*'https://searx.tiekoetter.com/search?q=hello'*/
107+
],
102108
ecosia: [], // unknown verify method https://www.ecosia.org/search?q=hello
103109
neeva: [], // unknown verify method(FetchError: maximum redirect reached) https://neeva.com/search?q=hello
104110
presearch: [],

0 commit comments

Comments
 (0)