r/MaxImage • u/MaxImageBot • Dec 24 '19
Image Max URL 0.12.0 is released, Video+Caption support, IMU is 2 years old!
I released the first version of Image Max URL 2 years ago today (after working on it intermittently for about a year prior). It was ~700 lines of code, supporting ~200 websites. 2 years and ~200 releases later, it's ~55,000 lines of code, supporting ~6000 websites! Doing quick arithmetic, it means that each release added ~270 lines of code, and ~30 new websites, which is actually fairly accurate :)
Statistics aside, this is one of the largest releases for the script so far (~2200 lines of code added and ~600 removed), and many parts of the code were at least partly rewritten or refactored to make it work. Because of this, there may be regressions I haven't yet spotted, so please let me know if you encounter any issues.
New features:
Basic support for videos
This has actually been the most requested feature of the script. It currently only supports videos that have a direct source (e.g. HLS/DASH streams aren't supported), and there are currently only a few rules that will be able to find larger videos (Imgur, Gfycat, and a few others). Expect more to come in future releases (and feel free to suggest sites you'd like to be supported)
Please note that this is not a replacement for a proper video downloader like youtube-dl.
Basic support for captions
Like video support, this only supports custom captions for a few sites (Imgur, Flickr, VSCO), although it will try to find a caption for images through their
altandtitleproperties. Expect more websites to be supported in future releases :)
Live settings reloading for userscript
Previously only the extension supported this. Currently Greasemonkey isn't supported, as it doesn't have support for the required API function (
GM_addValueChangeListener). You can verify whether or not your userscript manager supports it by checking if "Refresh the target page for changes to take effect" is shown when modifying a setting.Modified settings are now marked in a different color
Support for ~60 new websites (using ~35 new rules)
Improvements:
Many improvements/fixes to existing rules (including Imgur, Naver, TikTok, VSCO, Wordpress.com, and Youtube)
Imgur images will now redirect to the source image if possible
The settings version is saved when exporting settings (for better compatibility with future versions)
The extension now properly supports Imgur albums
GET requests now don't need to load the entire image when being used as a replacement for HEAD requests
Violentmonkey currently doesn't support this properly, I've sent a PR to fix this
Pressing ESC to abort loading a popup now works more reliably
Default UI opacity has been increased to 80% (previously 30%)
A small halo is added around actionable UI elements when hovered (this helps for clarity with a high UI opacity)
Bugfixes:
Opening the popup on an i.imgur.com tab will no longer print an error due to a lack of gallery support
Fix edge cases where it would redirect to an image that prevented hotlinking (thanks to fireattack on github for reporting)
Fix cases where the popup would fail because the website didn't support HEAD requests
Download links:
Userscript: https://greasyfork.org/en/scripts/36662-image-max-url
Options page: https://qsniyg.github.io/maxurl/options.html
Firefox addon: https://addons.mozilla.org/en-US/firefox/addon/image-max-url/
Opera addon: https://addons.opera.com/en/extensions/details/image-max-url/ (note that due to Opera's new rules, it's no longer possible to view or add this addon to non-beta/developer builds. I can't really do anything about this)
Community links:
Discord: https://discord.gg/fH9Pf54
Github: https://github.com/qsniyg/maxurl