Skip to content

Commit

Permalink
fix(duckduckgo): fix highlighting of mobile search results (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
aug-dev authored Jun 15, 2024
1 parent 4e1e209 commit cc3dab3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/scripts/search-engines/duckduckgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ const serpHandler = handleSerp({
},
]),
),
"[data-ub-blocked] .tile__media, [data-ub-highlight] .tile__media, [data-ub-blocked] .tile__body, [data-ub-highlight] .tile__body":
{
backgroundColor: "transparent !important",
},
[[
"[data-ub-blocked] .tile__media",
"[data-ub-highlight] .tile__media",
"[data-ub-blocked] .tile__body",
"[data-ub-highlight] .tile__body",
"[data-ub-blocked] :is(li > article)",
"[data-ub-highlight] :is(li > article)",
].join(", ")]: {
backgroundColor: "transparent !important",
},
'[data-ub-blocked="hidden"] + .result__sitelinks--organics': {
display: "none !important",
},
Expand Down

0 comments on commit cc3dab3

Please sign in to comment.