Additional selectors for reorder-ignore

"div[data-docid], div[data-lpage]" captures image results
pull/672/head
Kevin Payravi 2024-05-03 16:20:52 +03:00
parent 411763ca14
commit 096a870719
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}