mpiv icon indicating copy to clipboard operation
mpiv copied to clipboard

Ability to switch to next/prev image with arrow keys

Open reverse123 opened this issue 2 years ago • 5 comments

Please add the ability to dynamically switch to the next/prev image with arrow keys. There is some album functionality, but looks like it is tied to predefined websites. Thanks.

reverse123 avatar Aug 18 '23 03:08 reverse123

This functionality was always present when viewing galleries and it works for me. Which sites don't work for you?

tophf avatar Aug 18 '23 05:08 tophf

For me personally when I click left/right arrow keys nothing happens. I am talking about using it not only with sites where the script detects galleries, but any image sets. When the user presses the right arrow key on the site with no gallery detected, the script should find the closest next image that can be enlarged and show its popup. This will be very universal. This will work with almost all imageboards, boorus and so on at once.

reverse123 avatar Aug 31 '23 15:08 reverse123

Guess I will write an userscript-extension for this. Maybe you will include this functionality in your great script.

reverse123 avatar Aug 31 '23 16:08 reverse123

I doubt I'll implement it because it doesn't seem trivial and many sites need complex rules, there may be also false positives for auxilliary images like avatars, icons. The idea is interesting though, so I'm keeping it open.

tophf avatar Sep 01 '23 19:09 tophf

The structure of the parent DOM elements of the popped up image should be similar to the next one. Image size should also be checked if possible.

reverse123 avatar Sep 12 '23 23:09 reverse123