Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit 076861f

Browse files
committed
feat: add selectors for metaContainer, metaSource, and metaAd
1 parent 10a9c2c commit 076861f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • packages/google-sr-selectors/src

packages/google-sr-selectors/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export const OrganicSearchSelector = {
88
link: "div > div > a.fuLhoc.ZWRArf",
99
title: "span.CVA68e.qXLe6d.fuLhoc.ZWRArf",
1010
description: "span.qXLe6d.FrIlee > span.fYyStc",
11+
metaContainer: "span.qXLe6d.dXDvrc",
12+
// choose the last span as, if the result is an ad
13+
// there can be a middle span that contains the "-"
14+
metaSource: "span.fYyStc:last-of-type",
15+
// if this element is present and contains non empty text, its an ad
16+
metaAd: "span.dloBPe.fYyStc",
1117
};
1218

1319
export const TranslateSearchSelector = {

0 commit comments

Comments
 (0)