From 096a87071958bf7b67f5c5feac946e6797d9a7a2 Mon Sep 17 00:00:00 2001 From: Kevin Payravi Date: Fri, 3 May 2024 16:20:52 +0300 Subject: [PATCH] Additional selectors for reorder-ignore "div[data-docid], div[data-lpage]" captures image results --- scripts/content-search-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/content-search-filtering.js b/scripts/content-search-filtering.js index 21fb9b2..ea1be62 100644 --- a/scripts/content-search-filtering.js +++ b/scripts/content-search-filtering.js @@ -673,7 +673,7 @@ function startFiltering(searchEngine, storage, mutations = null, observer = null let searchResults = document.querySelectorAll("div[data-hveid] a:first-of-type:not([role='button']):not([target='_self'])"); // Remove any matches that are not "standard" search results - this could've been done with :has() but limited browser support right now - searchResults = Array.from(searchResults).filter((e) => !e.closest('g-section-with-header, div[aria-expanded], div[data-q], div[data-minw], div[data-num-cols]')); + searchResults = Array.from(searchResults).filter((e) => !e.closest('g-section-with-header, div[aria-expanded], div[data-q], div[data-minw], div[data-num-cols], div[data-docid], div[data-lpage]')); return await reorderSearchResults(searchResults, 'google', storage); }