Skip to content

Commit

Permalink
Merge pull request #387 from ikemo3/fix/google-search-top-news
Browse files Browse the repository at this point in the history
fix: does not work in 'Top News'
  • Loading branch information
ikemo3 authored Aug 13, 2022
2 parents 06f5924 + 8fd777c commit ae04c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/block/google_search_top_news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
Expand Down

0 comments on commit ae04c17

Please sign in to comment.