From 8fd777c57f32be563f7fb976f31e032f8b55c432 Mon Sep 17 00:00:00 2001 From: Hideki Ikemoto Date: Sat, 13 Aug 2022 22:42:35 +0900 Subject: [PATCH] fix: does not work in 'Top News' --- apps/block/google_search_top_news.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block/google_search_top_news.ts b/apps/block/google_search_top_news.ts index 78b6c1a3..1924acb6 100644 --- a/apps/block/google_search_top_news.ts +++ b/apps/block/google_search_top_news.ts @@ -14,7 +14,7 @@ class GoogleSearchTopNews extends SearchResultToBlock { static isCandidate(element: Element, documentURL: DocumentURL): boolean { return ( - element.matches("g-section-with-header > div[data-ved]") && + element.matches("g-section-with-header div.MkXWrd > div") && !element.querySelector("g-scrolling-carousel") && !documentURL.isGoogleSearchNewsTab() );