Skip to content

Commit bd2522c

Browse files
committed
presearch support (#592)
1 parent dc471ea commit bd2522c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const urls = {
101101
searx: ['https://searx.tiekoetter.com/search?q=hello'],
102102
ecosia: [], // unknown verify method https://www.ecosia.org/search?q=hello
103103
neeva: [], // unknown verify method(FetchError: maximum redirect reached) https://neeva.com/search?q=hello
104+
presearch: [],
104105
}
105106

106107
const commonHeaders = {

src/content-script/site-adapters/index.mjs

+8
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ export const config = {
117117
appendContainerQuery: ['.search-index__searchHeaderContainer-2JD6q'],
118118
resultsContainerQuery: ['.result-group-layout__component-1jzTe', '#search'],
119119
},
120+
presearch: {
121+
inputQuery: ["input[name='q']"],
122+
sidebarContainerQuery: [
123+
'div.w-full.\\32 lg\\:flex.\\32 lg\\:flex-row-reverse.\\32 lg\\:justify-end > div.flex.flex-col > div.z-1',
124+
],
125+
appendContainerQuery: [],
126+
resultsContainerQuery: ['div.text-gray-300.relative.z-1'],
127+
},
120128
bilibili: {
121129
inputQuery: bilibili.inputQuery,
122130
sidebarContainerQuery: ['#danmukuBox'],

0 commit comments

Comments
 (0)