• 欢迎访问巴适脚本网,油猴脚本,暴力猴脚本通过搞定啊,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有用,那么赶紧使用Ctrl+D 收藏巴适脚本吧,欢迎加入巴适脚本 QQ群

Image Max URL 为6300多个网站查找更大或原始图像

浏览器脚本 84jb 4个月前 (03-15)

为6300多个网站查找更大或原始图像

Image Max URL是一款专门查看网页上的大图脚本, 为6300多个网站查找更大或原始图像。
Image Max URL

  • Userscript: You are here
    • Userscript manager compatibility table
  • Browser extension: Firefox | Opera
    • Slightly faster than the userscript, better redirection support, and an optional context menu item
  • Website: https://qsniyg.github.io/maxurl/
    • Images needing cross-origin requests (such as Flickr) can’t be supported through the website. The userscript/browser extension is needed for those
  • Source code: https://github.com/qsniyg/maxurl

Community:


About

The userscript helps you find larger images for currently ~6300 hardcoded websites (using ~3800 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, Patreon, Pinterest, Reddit, Twitter, Tumblr, VK, VSCO, Weibo)
  • News websites (incl. BBC, Daily Mirror, Huffington Post, The Guardian, The Independent, Vogue)
  • Generic image hosting engines (incl. Cloudinary, Drupal, Imgix, MediaWiki, 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 "Hover Zoom"-style popup if Shift+Alt+I is held when the mouse is over an image (automatic gallery detection, image rotation, and zoom are supported)
    This is needed for websites like Instagram and VK, where it needs to know the page hosting the image in order to find the larger image
  • Check images and display a preview on the website
  • Under the userscript menu, there’s a button that will allow you to replace all images on a page to their larger versions. This can be useful if you’re using it alongside an extension that will download all images on a page

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.


Screenshot

Image Max URL


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.

By default, it also checks for updates through Github’s API. It does not automatically install any updates, it will only notify you if there is an update when visiting the options page. This can be disabled by disabling "Check Updates" in the options page.

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 basic documentation.

An image reloads infinitely when opened in a new tab

This is likely because you have a different userscript/extension that also redirects images. Unfortunately there’s not much I can do to automatically improve compatibility, but here are a few things you can do (from least to most invasive):

  • Add the website hosting the image that redirects infinitely to Image Max URL’s blacklist (in the options page)
  • Disable redirection support for Image Max URL
  • Disable either the other userscript/extension or Image Max URL

If this is
not caused by another extension, please file an issue and I’ll try to fix it. There are actually several safeguards in Image Max URL to prevent this from happening, but there can always be bugs.

  • 开发者:qsniyg
  • 版本:0.12.19
  • 上线时间:2017-12-24
  • 最近更新:2020-03-14
  • 应用到网站:所有站点
下载脚本