make-gis-great-again
make-gis-great-again copied to clipboard
Enhancement: Clicking the "View image" button should open the image with the containing page URL as the referer
An opportunity to make GIS greater than it ever was: rather than just opening the image as if when clicking the old "View image" button on Google (with inages.google.com as the HTTP referer), actually take the URL of the "Visit page" button, and inject that as the Referer header when the user clicks "View image".
Even better, use the "Visit page" links as referers when loading the images embedded in the search listing. This effectively defeats schemes where the image is blocked or blurred when coming from Google.
This may involve a server-side scripting, which must be hosted in somewhere such as digitalocean, which is a paid service. Also the existence of domain and server could lead the extension to have a single point of failure which is not great.
Anyway, I think this is a good idea, but it is nearly impossible to implement.
There is one semi-solution with adding referrerpolicy='no-referrer' and/or rel='noreferrer' to link.
Why would server-side scripting be needed for this? The Referer header is sent by the browser, and the URL to send is available as the target of the Visit button. In a WebExtension, you can use the WebRequests API "onBeforeSendHeaders" to override the Referer header, see https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/onBeforeSendHeaders