Image Max URL
Note: There is now a Firefox add-on:
https://addons.mozilla.org/en-US/firefox/addon/image-max-url/. It's a bit faster and has a few new features/improvements over the userscript (such as a context menu item, and better redirection support).
About
The userscript helps you find larger images for currently ~4500 hardcoded websites (using ~2600 rules), but it supports a number of generic engines, which means it can in theory work for almost any website.
Some of the websites it supports includes:
- Social media websites (incl. Instagram, Pinterest, Reddit, Twitter, Tumblr, Weibo)
- News websites (incl. BBC, Daily Mirror, Huffington Post, The Guardian, The Independent, Vogue)
- Generic image hosting engines (incl. Cloudinary, Drupal, Imgix, Wordpress)
- Image hosting services (incl. 500px, Imgur, Flickr, DeviantArt, Pixiv, SmugMug)
It works by replacing URLs with patterns or API calls. For example, if you have this image:
By adding
?name=orig to the end, you'll end up with a much larger image:
Usage
The script performs a number of functions, all of which can be configured in the
options page.
- Redirect images opened in their own tabs to larger/original versions
- Display a popup if
Shift+Alt+I (or Ctrl+Shift if you installed prior to 0.8.29) is held when the mouse is over an image
- Check images and display a preview on the website
The pop-up and the preview might take a few seconds to show as it currently needs to download the entire image before being able to display it.
Cross-domain requests
You may encounter a warning from your userscript manager that the script is performing a cross-domain (or cross-origin) request.
The script will request the generated URL before redirecting or previewing, to either ensure it exists, or download the image (if using the pop-up). Cross-domain requests are also used in API calls, such as for Flickr, DeviantArt, and Reddit.
If you want to see exactly what happens, search for
do_request in the userscript.
FAQ
Why does it redirect to a smaller image?Sometimes websites will scale images up, so this will return the original image. However, if the first image is indeed larger and isn't scaled, please
file an issue, and I will fix it ASAP.
Why does it redirect to a scaled-up image?Most likely because the original image is scaled-up. I try to make sure the script doesn't return any URLs that will scale up an image, but if you believe there's an error, please
file an issue.
Can you support website X?Please
file an issue, and I will try to support it, if possible.
Can I use this in my program?Yes, it's Apache 2.0 licensed (similar to MIT). Please see the
README on github for instructions.