summaryrefslogtreecommitdiff
path: root/src/engines.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/engines.ts')
-rw-r--r--src/engines.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engines.ts b/src/engines.ts
index 79462fc..a71b9c8 100644
--- a/src/engines.ts
+++ b/src/engines.ts
@@ -190,9 +190,11 @@ const BRAVE: EngineDefinition = {
item: '.snippet[data-type="web"]',
link: "a[href]",
title: ".title",
- // No dedicated description element; the item's text is
- // "source | breadcrumb | title | description", so subtract the first three.
- subtract: [".title", "cite", ".sitename", ".netloc"],
+ // No dedicated description element. The item's text is
+ // "source | breadcrumb | title | description", so the extractor keeps only
+ // the lines after the title. These selectors are the fallback for when the
+ // title is not on a line of its own.
+ subtract: [".title", "cite"],
unwrap: "none",
selfHostPattern: String.raw`^https?://(search\.)?brave\.com/`,
},