summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-08-03 22:09:48 +0100
committerIgor Soarez <igor@soarez.org>2026-08-03 22:09:48 +0100
commit7a8f261ec50b9c15bc37ba8ae1f0022c392111d3 (patch)
tree2157aaa360c41577910267fb513a9980920cc743 /package.json
parent97b7804d02d0a8ffc9afdc64069069baf93ef392 (diff)
Take Brave snippets by position rather than by class name
Brave's source name was leaking into every snippet ("Medium March 27, 2025 - ..."), because the .sitename/.netloc selectors guessed for it match nothing. Rather than guess again, use the ordering: an engine rendering "source / breadcrumb / title / description" puts all its metadata before the title, so everything after the title line is the description. Class names churn; that ordering does not. The named selectors stay as the fallback for when the title is not on a line of its own. Verified against Brave, and Google/DuckDuckGo/Bing re-checked for regressions.
Diffstat (limited to 'package.json')
0 files changed, 0 insertions, 0 deletions