Adjust Google selector to fix image results issue

pull/227/head v2.4.3
Kevin Payravi 2023-08-17 00:38:52 +08:00
parent 63efc1baf5
commit 9cc7a41281
3 changed files with 3 additions and 3 deletions

View File

@ -381,7 +381,7 @@ function main(mutations = null, observer = null) {
if (currentURL.hostname.includes('www.google.')) {
// Function to filter search results in Google
function filterGoogle() {
let searchResults = document.querySelectorAll("div[data-hveid] a[href*='fandom.com']:first-of-type, div[data-hveid] a[href*='fextralife.com']:first-of-type");
let searchResults = document.querySelectorAll("div[data-hveid] a[href*='fandom.com']:first-of-type:not([jsaction]), div[data-hveid] a[href*='fextralife.com']:first-of-type:not([jsaction])");
filterSearchResults(searchResults, 'google', storage);
}

View File

@ -1,6 +1,6 @@
{
"name": "Indie Wiki Buddy",
"version": "2.4.2",
"version": "2.4.3",
"description": "Indie Wiki Buddy helps you discover quality, independent wikis through alerts, redirects, and search filtering.",
"permissions": [
"storage",

View File

@ -1,6 +1,6 @@
{
"name": "Indie Wiki Buddy",
"version": "2.4.2",
"version": "2.4.3",
"description": "Indie Wiki Buddy helps you discover quality, independent wikis through alerts, redirects, and search filtering.",
"permissions": [
"storage",