From 8f1b01d47c116850a6bd1c38fd21f8290d7b7e7b Mon Sep 17 00:00:00 2001 From: Pedro Augusto <109992671+aug-dev@users.noreply.github.com> Date: Sat, 25 May 2024 06:14:56 -0300 Subject: [PATCH] feat(google): Add support for images on Google "All" page (#467) close #462 * Block "Images" on Google "All" page (Desktop) * Improved detection of Images on first result page * Support for dynamic loaded "Images" on Google "All" page (infinite scrolling) --- src/scripts/search-engines/google-desktop.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/scripts/search-engines/google-desktop.ts b/src/scripts/search-engines/google-desktop.ts index 1c5b8653b..4cfeadff9 100644 --- a/src/scripts/search-engines/google-desktop.ts +++ b/src/scripts/search-engines/google-desktop.ts @@ -465,6 +465,18 @@ const desktopSerpHandlers: Record = { actionTarget: ".ZE0LJd, .S1FAPd", actionStyle: desktopActionStyle, }, + // Images (on the "All" page) + { + target: ".eA0Zlc.mkpRId.RLdvSe", + url: "a", + title: ".toI8Rb", + actionTarget: ".guK3rf", + actionStyle: { + ...desktopActionStyle, + position: "relative", + zIndex: "1", + }, + }, ], pagerHandlers: [ // People Also Ask @@ -483,7 +495,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", }, ], }),