From 27e98c50c496f8af98e8e356e08a0b472aa31e09 Mon Sep 17 00:00:00 2001 From: Pedro Augusto Date: Thu, 16 May 2024 20:01:19 -0300 Subject: [PATCH 1/3] Block "Images" on Google "All" page (Desktop) --- src/scripts/search-engines/google-desktop.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/scripts/search-engines/google-desktop.ts b/src/scripts/search-engines/google-desktop.ts index 596a660b8..9844c140f 100644 --- a/src/scripts/search-engines/google-desktop.ts +++ b/src/scripts/search-engines/google-desktop.ts @@ -365,6 +365,19 @@ const desktopSerpHandlers: Record = { actionTarget: ".ZE0LJd, .S1FAPd", actionStyle: desktopActionStyle, }, + // Images (on the "All" page) + { + target: ".JMWMJ", + level: ".eA0Zlc", + url: "a", + title: ".toI8Rb", + actionTarget: ".guK3rf", + actionStyle: { + ...desktopActionStyle, + position: "relative", + zIndex: "1", + }, + }, ], pagerHandlers: [ // People Also Ask From 1317266c38372f21902cc8cda8832f2eed86c234 Mon Sep 17 00:00:00 2001 From: Pedro Augusto Date: Sun, 19 May 2024 21:24:23 -0300 Subject: [PATCH 2/3] Improved detection of Images on first result page --- src/scripts/search-engines/google-desktop.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/search-engines/google-desktop.ts b/src/scripts/search-engines/google-desktop.ts index 9844c140f..2348b3691 100644 --- a/src/scripts/search-engines/google-desktop.ts +++ b/src/scripts/search-engines/google-desktop.ts @@ -367,8 +367,7 @@ const desktopSerpHandlers: Record = { }, // Images (on the "All" page) { - target: ".JMWMJ", - level: ".eA0Zlc", + target: ".eA0Zlc", url: "a", title: ".toI8Rb", actionTarget: ".guK3rf", From 3b2f056ba338f08580ca19474c9a92299fbb6cd8 Mon Sep 17 00:00:00 2001 From: Pedro Augusto Date: Mon, 20 May 2024 00:40:42 -0300 Subject: [PATCH 3/3] Support for dynamic loaded "Images" on Google "All" page (infinite scrolling) --- src/scripts/search-engines/google-desktop.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/search-engines/google-desktop.ts b/src/scripts/search-engines/google-desktop.ts index 2348b3691..d9d6341eb 100644 --- a/src/scripts/search-engines/google-desktop.ts +++ b/src/scripts/search-engines/google-desktop.ts @@ -367,7 +367,7 @@ const desktopSerpHandlers: Record = { }, // Images (on the "All" page) { - target: ".eA0Zlc", + target: ".eA0Zlc.mkpRId.RLdvSe", url: "a", title: ".toI8Rb", actionTarget: ".guK3rf", @@ -395,7 +395,7 @@ const desktopSerpHandlers: Record = { target: '.autopagerize_page_info ~ div, [id^="arc-srp"] > div', // Regular, Video, and YouTube and TikTok channel innerTargets: - "[data-snf], [data-sokoban-feature], [data-content-feature], .IsZvec, .g, .iHxmLe, .d3zsgb, .rULfzc", + "[data-snf], [data-sokoban-feature], [data-content-feature], .IsZvec, .g, .iHxmLe, .d3zsgb, .rULfzc, .eA0Zlc.mkpRId.RLdvSe", }, ], }),