qsniyg / maxurl Goto Github PK
View Code? Open in Web Editor NEWFinds larger/original versions of images and videos
Home Page: https://qsniyg.github.io/maxurl/
License: Apache License 2.0
Finds larger/original versions of images and videos
Home Page: https://qsniyg.github.io/maxurl/
License: Apache License 2.0
Since the popup is essentially "reset" when going to the next or previous image in a gallery, it will open where the mouse is. When using the UI to click on the left/right arrows, this can be quite jarring. Instead, it should open based off the last position.
Chromium v67.0.3396.87
Image Max URL v0.4.8
Mouseover popup trigger Ctrl+Shift+Alt
This bug has been annoying me since v0.4.5 or v0.4.7. The trigger would be executed even if I only pressed Ctrl+Shift
.
Steps to reproduce:
Ctrl+Shift+Alt
Ctrl+Shift
while hovering mouse on top of an image (no effect as expected)Alt+e
(will open chromium's menu)Esc
or click anywhere on the page (to hide the menu)Ctrl+Shift
while hovering mouse on top of an image (trigger is unexpectedly executed)I'm not a developer but I'm interested in finding it out.
I came across these links and I feel like they have larger versions. I don't know how to start looking.
https://goss.vcg.com/editorial/vcg/800/new/VCG111152795068.jpg
https://goss2.vcg.com/editorial/vcg/800/new/VCG111152804617.jpg
http://pictures.icpress.cn/thumbs/imgs/2018/0511/20180511_83981.jpg
The option would be disabled by default, but in some cases, it could be useful to replace images to larger ones automatically, or possibly replace/add links to the images that would contain the larger versions.
Progress:
I don't know if this link has a raw version. But it's not at least redirecting to 1280
.
https://78.media.tumblr.com/tumblr_lyqq4hsfo01qdphnvo1_500.gif
https://78.media.tumblr.com/tumblr_mdsm9coSB41r06hrwo1_250.gif
Please provide a way for OPs to delete comments left by this bot (via sending a PM with the comment ID, downvoting, etc.)
Currently only Shift
, Ctrl
and Alt
can be set as the popup hotkeys and all keys interfere with standard computer usage, I constantly experience the webpage background image being opened when typing (for instance on https://steamcommunity.com/). Preferably allow setting any key and combination of keys.
Adding a close button, as well as left/right arrows to browse the gallery could be useful for those who don't want to only rely on keyboard bindings. It would also allow for a minor workaround for websites such as Instagram and Imgur that overwrite keyboard bindings (until #38 is fixed properly).
#37 could also use this.
It's great that Reddit thread links are rewritten to direct images. Pop-up support would allow seamless browsing on image-based subreddits.
https://www.reddit.com/r/corgi/
https://old.reddit.com/r/corgi/ (legacy)
Image Max URL v0.4.5
I can see the blue background when setting my options for popup trigger. However, they get lost when I reload the page.
Currently set to Ctrl + Alt, but Ctrl + Shift expresses the same behaviour:
Version: 0.70, Addon
Browser: Firefox 62.0.3 x64
Sample site: any site, but here's the first one:
https://www.ghacks.net/2018/10/12/load-larger-image-copies-with-image-max-url
The image is loaded as e.g. https://styles.redditmedia.com/t5_3pguo/styles/profileIcon_hdpofk4olag01.jpg?width=256&height=256&crop=256:256,smart&s=3df0ac6cd6b812fc38a249f3579e261d442424b3 or https://styles.redditmedia.com/t5_3khyj/styles/profileBanner_kfn1qeqdfh521.png?width=1280&height=384&crop=1280:384,smart&s=22650cf8b2e788c04289f7ab224745d3c2a3fd3cwith the original available at https://styles.redditmedia.com/t5_3pguo/styles/profileIcon_hdpofk4olag01.jpg and https://styles.redditmedia.com/t5_3khyj/styles/profileBanner_kfn1qeqdfh521.png respectively.
Links like this: https://upload.wikimedia.org/wikipedia/commons/c/cf/Geraldo_Rivera_at_White_House_%285682334468%29_%28cropped%29.jpg display with italics replacing the underscores.
On a few websites, although it will result in a larger image, the larger image will add a watermark (on many of them, for images they don't even own).
For now, these websites have been added as part of the script, but having the option to disable these rules would be helpful.
The base userscript is now more than 2MB, which prevents it from being able to be on Greasyfork.
The current solution is to strip comments, which brings it down to <1MB.
Example: https://66.media.tumblr.com/cdcb216eb8e7af14c2e2d8e6d0aa0436/tumblr_nkopbvn3U81qaysjmo1_r2_500.jpg
Pretty sure it worked before.
Example:
This doesn't redirect which I assume it because 0df91fe3-7ce5-41ad-89f8-a6a52625e752.jpg
returns 404; but it has a larger version at 0df91fe3-7ce5-41ad-89f8-a6a52625e752.png
.
(Keep in mind that's not the case for all the images: some do only have JPEG original image. Example. So I'm not sure if it's easy to implement it.)
Imgur albums don't seem to be supported. It's also possible to upload one image as an album, you'll often see instances like this around the web: https://www.reddit.com/r/pcgaming/comments/ae98lx/the_division_2_is_regionlocked_to_account_country/
https://imgur.com/a/kdTZAjK
I've always loved using the max image url extension on Firefox since it lets me quickly open the image in a new tab via shortcut, but recently I've had to move to Chrome due to some complications with Firefox and I realized just how much I miss this feature in particular and I have no way to get it back.
It doesn't seem like it is possible to open an image in a new tab via a short cut with the script alone (or at least I couldn't find it in the settings page) which means that when using Chrome (or any chromium browser) there's no way to set a shortcut to open an image in a new tab, meaning the pop up or the direct image redirect are the only methods available.
The script is also somewhat slower than the extension.
So my question is are there any plans to create a Chrome extension that has the same set of features the Firefox one has?
There are a lot of settings, having categories could help to organize them.
As suggested by @07416, having a counter in the UI for the amount of popup images available would be helpful.
This would likely be optional, because it might be a little CPU-intensive. Alternatively, if it goes above a set amount, such as 100 images, it could either display as 100+
or not display a counter at all. That amount should be configurable.
I tried the website today (few minutes ago) and it doesn't seem to be working for me. It's working on the mobile btw.
Also, tried using the userscript too, through TamperMonkey on Chrome and it doesn't run too.
Right now, the script works by a very large chain of if blocks. This results in decent performance, but it could be improved, and it can get rather frustrating to debug issues.
Rewriting the script manually would be next to impossible. Instead, since the vast majority of the rules are written in more or less the same way, they could be automatically parsed. The rest would be done manually.
Naively loading the resulting object and parsing it in the script would likely result in a performance nightmare. Instead, it would be compiled in a format similar to this:
switch(domain[0]) {
case 'a':
switch (domain[1]) {
case 'a':
// ...
}
break;
case 'b':
switch (domain[1]) {
case 'a':
// ...
}
break;
// ...
}
Each of the rules could be functions stored in an array.
Problems so far:
{
domain: "abc.com",
tests: [
{start: "...", end: "..."}
]
}
If you're curious, this is a quick explanation as to why it was written the way it was.
This would allow people to create their own rules, likely requires #12 to be implemented first.
Although this could theoretically be done before, it would require creating a custom system, which would likely have to be replaced once #12 is implemented. This has a few possible problems:
Whatever solution is implemented for this, it will take a significant amount of time to implement and document. Users will have to learn a new system, and changing the system midway through is going to hamper user experience (setting aside the issue of a relatively large amount of duplicated development time).
As unoptimal as it is, until #12 is implemented, for now the best option to add your own rules is to submit an issue (or contact me directly) for it to be included upstream, then edit the script locally until then (or use git master).
Steam's native image viewer (click on a thumbnail followed by larger image) doesn't show the image at full size. Please add support to browse through the entire gallery. Videos shouldn't be included.
I'm not sure if I should file this as a bug or not, probably not as I'm assuming it's a browser limitation, but it was bothering me the whole day that I kept using my hotkeys and nothing would happen. I re-installed the extension and even tried changing the combinations to all sorts of settings and nothing.
I was about to file an issue here about this when it suddenly hit me that I had switched the privacy.resistFingerprinting setting in about:config the other day and that could be the reason. Turns out that intuition was right. If you have this option on, the hotkeys will simply not work, though redirection still works normally as long as you directly open the image.
Hopefully this can serve other people having a similar issue in the future. And if the dev wasn't aware maybe they can create a workaround (unless it's actually impossible, in which case I hope this serves as a troubleshoot for others)
Pop-up for direct image hyperlinks isn't supported: https://user-images.githubusercontent.com/14923168/48137062-e4c0ef80-e2a9-11e8-8ec8-3ffcdfb1d463.jpg
Can you enable all direct links with one global rule?
Although albums are supported, it's not properly supported for the gallery
Hi. The script currently appends :orig
to the url. This causes my browser to save it as .jpg_orig
.
Can you change it from
https://pbs.twimg.com/media/Dbxmq4BV4AA2ozg.jpg:orig
to?
https://pbs.twimg.com/media/Dbxmq4BV4AA2ozg?format=jpg&name=orig
My browser will save it as .jpeg
Link: http://img.ltn.com.tw/Upload/ent/page/800/2018/05/10/2422261_2.jpg (with watermark)
Larger version: http://img.ltn.com.tw/Upload/ent/page/orig/2018/05/10/2422261_2.jpg (no watermark)
Right now, the behavior is:
when (trigger_keys_are_pressed) {
start_loading_image();
}
when (image_finished_loading) {
show_popup();
if (trigger_keys_are_pressed) {
when (!trigger_keys_are_pressed) {
hide_popup();
}
} else {
when (any_key_is_pressed) {
hide_popup();
}
}
}
This behavior was chosen because it could be annoying to have to keep holding down the trigger keys while the image is loading in order to see the image. However, this behavior could be confusing or annoying to some users, so it should be configurable.
An option (disabled by default) to highlight supported images would be useful, especially in reverse image searches.
This would be useful for when someone can't run the trigger, or just even for convenience. It would also help with #32.
If the mouse moves to the left or right side of the image, clicking should result in the gallery being moved left/right, because otherwise the buttons can be a little hard to click.
This would fix Instagram and Imgur (albums).
https://webnewtype.com/rsz/S1/182540/1085543.jpg/w600h450/
-> https://webnewtype.com/rsz/S1/182540/1085543.jpg
Basically any image on https://webnewtype.com/ will follow this rule, such as the one on https://webnewtype.com/news/article/182559/
Can you add key combinations for the popup trigger? The single key trigger can get annoying when I'm navigating tabs (Ctrl+Shift+Tab
) and windows (Alt+Shift+Tab
).
Two-key combinations (e.g. Ctrl+Alt
) would be good. Three-key combinations (e.g. Alt+Shift+x
or Ctrl+Alt+Shift
) would be better.
As of yesterday, deviantart images are no longer affected by this script (and remain the default "-fullview" lower-res size/quality assigned by deviantart/wixmp). I noticed, when opening them in a new tab, that the new tab no longer refreshes/reloads with the higher/max resolution & quality. Attempting to edit the dimensions or quality in the URL results in an "unauthorized" error page.
For example:
https://www.deviantart.com/raikoart/art/Riven-790761430
Behavior BEFORE:
(in chrome)
Click on image to zoom until max zoomed > right click > open in new tab >image opens in new tab (default "-fullview" low-res version > after a second, script reloads image w/ larger dimensions + higher quality
Behavior NOW:
Click on image to zoom until max zoomed > right click > open in new tab >image opens in new tab (default "-fullview" low-res version > script does not reload image, instead is mouse cursor is constantly 'loading' when in the new tab
Tried enabling/disabling tampermonkey, Image Max url, restart chrome, no good.
The Firefox plugin appears to be working normally however, so perhaps it is a chrome-specific issue?
EDIT: Nevermind, the firefox extension no longer reloads deviantart images with their larger/full res versions either now. Just had it work on one image, and no more after that (using the shift+control key to bring up a popup just displays an endless loading cursor on the mouse).
Hi,
0,1% of your users will probably benefit this so it is not a super important thing to add.
Images on the website for the Swedish television broadcaster SVT can be better quality.
Main website is https://www.svt.se/ and CDN is https://www.svtstatic.se/.
Example URLs:
https://www.svtstatic.se/image/cinema/760/19912234/1541383772?quality=70&format=auto
https://www.svtstatic.se/image/wide/480/19864886/1540988000?quality=70&format=auto
https://www.svtstatic.se/image/square/200/19910166/1541348996?quality=70&format=auto
URL is svtstatic.se/image/crop/width/ID/verson.extension
Crop can be Original
, cinema
, imax
, square
, tv
, fourthree
, portrait
, logo
andwide
.
Width can be Unscaled
, default
or an integer
ID isn't always 8 numbers, older images seem to only have 7
Version can be left out, only for cache busting (E.g. /image/wide/992/19912126?quality=70&format=auto)
Extension can be .jpg
, .png
, .gif
and .webp
.
We get .jpg 100% of the time even if format=auto
is in the URL so I guess it can be left out?
Quality
Looks like images have 70% quality at default. Can be changed by changing ?quality=70
to ?quality=100
in the URL. Changing it to 100 increases the quality. Removing everything defaults to 70%.
/image/wide/992/19912126/1541373740?quality=70 is 72 KB
/image/wide/992/19912126/1541373740?quality=100 is 392 KB
/image/wide/992/19912126/1541373740 is 72 KB
Resolution
Different crop has different resolution. Thumbnails has /224/
, normal images has /992/
, square thumbnail has /200/
in the URL. 992px looks like the biggest they use.
Can be changed to /unscaled/
to get original image.
/image/wide/224/19912126/1541373740?quality=100 is 224x126px
/image/wide/unscaled/19912126/1541373740?quality=100 is 1920x1080px
Crop
Different images are cropped differently.
Can be Original
, cinema
, imax
, square
, tv
, fourthree
, portrait
, logo
and wide
.
Example: Changing /cinema/
to /original/
to get non-cropped verison:
/image/cinema/unscaled/19765912/1540298095?quality=100 832px vertical
/image/original/unscaled/19765912/1540298095?quality=100 1080px vertical
Image format
Images are served as JPEG at default. Can be changed to PNG to increase quality(?). If images are changed to .png we don't need quality=100
.
/image/original/unscaled/19765912/1540298095.jpg?quality=100 is 706 KB
/image/original/unscaled/19765912/1540298095.png is 2,23 MB
Problems with changing file format
Some images get darker while others don't.
This one changes color:
/image/original/unscaled/19912234/1541383772.png
/image/original/unscaled/19912234/1541383772?quality=100
This one doesn't change:
/image/original/unscaled/19911014/1541355230?quality=100
/image/original/unscaled/19911014/1541355230.png
Sorry for the wall of text, and thanks if you try to do any of this!
~@TheLovinator1
Would supporting Bookwalker be acceptable?
Product page: https://bookwalker.jp/de320cc93c-47f1-422d-a917-e14f3be19b67/
Standard image: https://rimg.bookwalker.jp/7759762/frDGCemG5kX9EBY8IrbThQ__.jpg
Alt image: https://c.bookwalker.jp/7759762/t_700x780.jpg
Original undisplayed image: https://c.bookwalker.jp/coverImage_2679576.jpg
Here is a bookmarklet we made that explains URL conversion for reference:
javascript:!function(a){var b=document.createElement("textarea"),c=document.getSelection();b.textContent=a,document.body.appendChild(b),c.removeAllRanges(),b.select(),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(b)}("https://c.bookwalker.jp/coverImage_" + (parseInt($('meta[property="og:image"]').attr('content').split("/")[3].split("").reverse().join(""))-1) + ".jpg");
Especially useful for browsing albums in sites like Imgur
Not directly related to the script but.
Maybe some other sites too. In Firefox, when browser internal tracking protection is set to "always" popup and redirections stop working. Adding exception doesn't help.
I found it just right now. But for information, Twitter/TweetDeck not worked for me from the beginning when first installed the script, then at some point it started. And recently somewhere at version 0.7.6 7(?) this bug(?) is back. So maybe it was the reason from the beginning? No noticeable problems with other sites.
Right now it tries to "guess" the correct layer, but there are times it guesses wrong. This likely needs a UI (unless the up/down arrow keys were used for this).
It should also allow going through IMU's history for the specified image.
Examples:
to
DMSCALE goes up (not sure if it's always 200), DMWIDTH and DMHEIGHT can be maximized, DMX and DMY should always start at 0.
and
to
where w and h values in both cases are changed to 9999 or another high number.
It would be nice to be able to have some sort of customization (for the extension version) for the popUp appearance (borders, shadows, border-radius): either in form of presets or a custom field where user can add their own CSS rules (find example below)
border: 7px solid hsla(0,0%,95%,.6);
border-radius: 5px;
box-shadow: 0 0 2px #666
Optional, this would add zoom in/zoom out buttons to the top of the UI.
I recently found this script and installed it using Tapermonkey on Google Chrome. However, when I try to open an image in a new tab, nothing happens.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.