Skip to content

Commit

Permalink
presearch support (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Jan 26, 2024
1 parent dc471ea commit bd2522c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/scripts/verify-search-engine-configs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const urls = {
searx: ['https://searx.tiekoetter.com/search?q=hello'],
ecosia: [], // unknown verify method https://www.ecosia.org/search?q=hello
neeva: [], // unknown verify method(FetchError: maximum redirect reached) https://neeva.com/search?q=hello
presearch: [],
}

const commonHeaders = {
Expand Down
8 changes: 8 additions & 0 deletions src/content-script/site-adapters/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ export const config = {
appendContainerQuery: ['.search-index__searchHeaderContainer-2JD6q'],
resultsContainerQuery: ['.result-group-layout__component-1jzTe', '#search'],
},
presearch: {
inputQuery: ["input[name='q']"],
sidebarContainerQuery: [
'div.w-full.\\32 lg\\:flex.\\32 lg\\:flex-row-reverse.\\32 lg\\:justify-end > div.flex.flex-col > div.z-1',
],
appendContainerQuery: [],
resultsContainerQuery: ['div.text-gray-300.relative.z-1'],
},
bilibili: {
inputQuery: bilibili.inputQuery,
sidebarContainerQuery: ['#danmukuBox'],
Expand Down

0 comments on commit bd2522c

Please sign in to comment.