diff --git a/.github/workflows/scripts/verify-search-engine-configs.mjs b/.github/workflows/scripts/verify-search-engine-configs.mjs index 0b01d3bc..83634661 100644 --- a/.github/workflows/scripts/verify-search-engine-configs.mjs +++ b/.github/workflows/scripts/verify-search-engine-configs.mjs @@ -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 = { diff --git a/src/content-script/site-adapters/index.mjs b/src/content-script/site-adapters/index.mjs index 711678e8..12acdbbf 100644 --- a/src/content-script/site-adapters/index.mjs +++ b/src/content-script/site-adapters/index.mjs @@ -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'],