nopperl / load-reddit-images-directly

Firefox web extension that loads reddit images directly instead of referring to the HTML page containing the image.
https://addons.mozilla.org/en-US/firefox/addon/load-reddit-images-directly/
Mozilla Public License 2.0
98 stars 5 forks source link

Feature request: allow direct mouse left-click and middle-click (scroll-click) to open image in current tab and in new tab, respectively #9

Closed Tiagoquix closed 4 months ago

Tiagoquix commented 4 months ago

Reddit has changed its way of handling image clicks. Now, when you click on an image, it enlarges a preview on the current tab, and the only way to open the original is by right-clicking and "Open image in new tab".

Example: https://www.reddit.com/r/memes/comments/jnbc9d/i_feel_privileged/

image

image

nopperl commented 4 months ago

Thanks for the suggestion. I have now implemented the clickable behaviour you requested, but it is disabled by default for a few reasons. Most importantly, I have to manipulate the DOM directly to implement this, which will not be robust to future UI updates. Also, it introduces a slight performance overhead. Finally, I'm not convinced that this behaviour is better than the default one (lightbox + direct load on right click only).

Tiagoquix commented 4 months ago

Thank you very much!