Skip to content

Commit

Permalink
Merge pull request #523 from aug-dev/pa/521/fix-google-related-imgs
Browse files Browse the repository at this point in the history
Fix: Block Related Images on Google Images
  • Loading branch information
iorate authored Aug 25, 2024
2 parents 402cb00 + 60a8392 commit 10686ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/scripts/search-engines/google-desktop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ const desktopSerpHandlers: Record<string, SerpHandler> = {
style: {
display: "block",
margin: "5px 0",
paddingLeft: "1.5rem",
},
},
],
Expand All @@ -647,8 +648,26 @@ const desktopSerpHandlers: Record<string, SerpHandler> = {
actionStyle: {
display: "block",
fontSize: "11px",
paddingLeft: "4px",
},
},
{
target: ".isv-r",
url: "a:not([role='button'])",
actionTarget: (root) => root,
actionStyle: {
display: "block",
fontSize: "12px",
lineHeight: "18px",
margin: "-2px 0 8px",
},
},
],
pagerHandlers: [
{
target: "c-wiz",
innerTargets: ".isv-r",
},
],
pageProps: {
$site: "google",
Expand Down

0 comments on commit 10686ab

Please sign in to comment.