-
QuestionHow to target a result that is multiple Initial attempt at lite.duckduckgo.com filtering. I had submitted a PR (ublacklist/builtin#67) but realized I should have started in Q&A first. Each set of results on lite.duckduckgo.com is a quadruplet of I was able to target the link and title for each result within the first But am not sure how to target additional I searched issues and found some old code here: #392 & eb9c742 But it seems the code is injecting a Thank you for any help or advice! And thank you for making this super useful extension! Here is an example of a DuckDuckGo Lite result: And here is my SERPINFO so far: BrowserChrome 144.0.7559.254 uBlacklist Version9.8.0 Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
Thanks for the detailed write-up — the example HTML and your SERPINFO made the problem clear. You're right that this isn't currently expressible. SERPINFO assumes one result maps to one I'm considering adding an results:
- name: Default
root: tr:has(.result-link)
extraSelector: "& + tr, & + tr + tr" # snippet and link-text rows
url: .result-link
props:
title: .result-linkThis is still under consideration and the exact syntax may change, but the use case is understood. I'll follow up here when there's progress. |
Beta Was this translation helpful? Give feedback.
-
|
Awesome, thank you! Does it makes sense to make results:
- name: Default
root:
- tr:has(.result-link)
- & + tr
- & + tr + tr
url: .result-link
props:
title: .result-link |
Beta Was this translation helpful? Give feedback.
-
|
Implemented in #850 — a result definition can now take an (I kept this separate from This will ship in the next release. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks to version 9.9.0 DuckDuckGo Lite is working great now! EDIT: native support for lite.duckduckgo.com was added in ublacklist/builtin#69 |
Beta Was this translation helpful? Give feedback.
Implemented in #850 — a result definition can now take an
extraSelector, a selector list resolved relative to the matchedrootvia the CSS nesting selector&, whose matched elements inherit the root's block/highlight state.(I kept this separate from
rootrather than turningrootinto a list, sincerootis what identifies a single result — overloading it would blur which element the count, block button, andurl/propsresolve against.)This will ship in the next release.