Skip to content

Commit

Permalink
fix(duckduckgo): fix selectors for DuckDuckGo
Browse files Browse the repository at this point in the history
fix #346
  • Loading branch information
iorate committed Jun 3, 2023
1 parent 7acea4c commit aa00276
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/scripts/search-engines/duckduckgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const serpHandler = handleSerp({
// All
{
scope: 'all',
target: '#message',
position: 'afterbegin',
target: 'ol.react-results--main',
position: 'beforebegin',
style: defaultControlStyle(),
buttonStyle: 'result__a',
},
Expand Down Expand Up @@ -114,7 +114,7 @@ const serpHandler = handleSerp({
// All
{
scope: 'all',
target: '.results > .nrn-react-div',
target: 'ol.react-results--main > li',
url: 'a[data-testid="result-extras-url-link"]',
title: 'a[data-testid="result-title-a"]',
actionTarget: 'article[data-testid="result"]',
Expand Down Expand Up @@ -170,6 +170,12 @@ const serpHandler = handleSerp({
actionButtonStyle: 'result__a',
},
],
pagerHandlers: [
{
target: 'ol.react-results--main',
innerTargets: 'li',
},
],
getDialogTheme: getDialogThemeFromBody(),
});

Expand Down

0 comments on commit aa00276

Please sign in to comment.