diff --git a/apps/block/google_news_card.ts b/apps/block/google_news_card.ts index b6e8d793..988ea081 100644 --- a/apps/block/google_news_card.ts +++ b/apps/block/google_news_card.ts @@ -16,7 +16,7 @@ class GoogleNewsCard extends SearchResultToBlock { } static isCandidate(element: Element, documentURL: DocumentURL): boolean { - return element.nodeName.toLowerCase() === "g-card" && documentURL.isGoogleSearchNewsTab(); + return element.matches(".BGxR7d > div:first-child") && documentURL.isGoogleSearchNewsTab(); } // noinspection DuplicatedCode diff --git a/apps/styles/google.css b/apps/styles/google.css index 8ff55df7..1af23b68 100644 --- a/apps/styles/google.css +++ b/apps/styles/google.css @@ -175,8 +175,8 @@ div[role="listitem"] { } [data-gsb-element-type="google-news-card"] + .block-anchor { - margin-top: -13px !important; - margin-bottom: 13px !important; + margin-top: 0 !important; + margin-bottom: 0 !important; } [data-gsb-element-type="google-news-card"][data-gsb-menu-position="compact"] {