Adjust Google CSS query to only capture search results (not images)

pull/118/head
Kevin Payravi 2023-04-09 03:54:00 -05:00
parent 052448d97c
commit 9832f0c859
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ function main(mutations = null, observer = null) {
if (currentURL.hostname.includes('www.google.')) {
// Check if doing a Google search:
function filterGoogle() {
let fandomSearchResults = document.querySelectorAll("div[data-hveid] a[href*='fandom.com']");
let fandomSearchResults = document.querySelectorAll("div[lang] a[href*='fandom.com']");
filterSearchResults(fandomSearchResults, 'google', storage);
}
addLocationObserver(main);