You will need to install a user script manager extension to install this script.
Ugly adaptation for the way Google handles image URLs right now :(
(Might be different for you - if the older version still works, try https://greasyfork.org/en/scripts/27409-google-images-direct-links)
The real URLs are only loaded by Google once you click on an image. I haven't been able to stop the details view to open upon click (and I'd rather not force it to stay hidden completely)
So when you click on the arrow, the script triggers a click on the image and wait for the URL to load. As soon as we find it, it opens in a new tab.
If you can decouple the "getting link" part from the "opening details view" part, let me know!!! (I can't see through the minimized entangled mess of the actual google functions)
Click on the arrow that should appear on top of the images on the result page (see image below)
Configure via the TamperMonkey menu (see image below)
Trusted-Types. Seems to work for now, but is subject to change.
@requiredependencies on pages which have a restrictive