Skip to content

Commit

Permalink
Merge pull request #690 from ikemo3/fix/top-news
Browse files Browse the repository at this point in the history
fix: can't block Top News
  • Loading branch information
ikemo3 authored Apr 30, 2023
2 parents a26fdf5 + 0792da6 commit ad0e96a
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.MkXWrd > div") &&
element.matches("g-section-with-header div[data-hveid]") &&
!element.querySelector("g-scrolling-carousel") &&
!documentURL.isGoogleSearchNewsTab()
);
Expand Down

0 comments on commit ad0e96a

Please sign in to comment.