[HN Gopher] Imgpls - An extension to load Imgur images directly
       ___________________________________________________________________
        
       Imgpls - An extension to load Imgur images directly
        
       Author : goranmoomin
       Score  : 81 points
       Date   : 2024-08-19 18:19 UTC (4 hours ago)
        
 (HTM) web link (andadinosaur.com)
 (TXT) w3m dump (andadinosaur.com)
        
       | ssahoo wrote:
       | It's a shame that we are getting to a place to have an extension
       | for each site to avoid dark patterns. May be just all in one
       | extension just like Greasemonkey.
        
         | latexr wrote:
         | > May be just all in one extension
         | 
         | StopTheMadness is kind of that.
         | 
         | https://underpassapp.com/StopTheMadness/
        
           | Miraste wrote:
           | It's unfortunate bordering on ironic that both of these are
           | available only through the App Store.
        
             | jiveturkey wrote:
             | all safari extensions are app store only
        
               | Miraste wrote:
               | I'm aware. And the App Store is a prime example of the
               | corporate culture causing the problems these extensions
               | mitigate.
        
       | pavel_lishin wrote:
       | Sounds like an app, not an extension. This would be nice to have
       | in Firefox... and for Tumblr images, too.
        
         | ihuman wrote:
         | It's an app because that's the only way to distribute iOS
         | safari extensions
        
           | pavel_lishin wrote:
           | Ah, I didn't know that.
        
         | lucb1e wrote:
         | App: https://f-droid.org/en/packages/com.ensoft.imgurviewer/
         | 
         | Not a perfect experience but easily preferable over the
         | original webpage and works for more than just imgur
        
       | beeboobaa3 wrote:
       | Shouldn't this have been a firefox mobile extension?
        
         | latexr wrote:
         | As per the page, the author made it to fix a personal
         | annoyance. It makes sense they made it work for whatever
         | browser they use.
        
       | hollow-moe wrote:
       | There's also alternative frontends like Rimgo :
       | https://codeberg.org/rimgo/rimgo Then you can use LibRedirect to
       | redirect all imgur urls to a more friendly frontend. (Now there's
       | the issue of imgur aggressive block of datacenter/vpn IPs but
       | it's another story)
        
         | toomuchtodo wrote:
         | Could pull directly from the Internet Archive if the object
         | exists?
        
           | hollow-moe wrote:
           | IMO we shouldn't rely on TIA to deliver content because the
           | original source is really bad. They have limited resources
           | and are already being abused by lazy devs, moreover the
           | picture you will get might have been modified to be something
           | else on the archive.
        
         | bangaladore wrote:
         | LibRedirect is nice, but it often redirects to rate-limited
         | instances. Why is this not checked _before_ redirecting me.
        
       | harryf wrote:
       | Same would be nice for i.redd.it
        
         | jchw wrote:
         | I believe I'm using this add-on in Firefox:
         | 
         | https://addons.mozilla.org/en-US/firefox/addon/load-reddit-i...
         | 
         | Though, given that I think the solution to this can be
         | generalized, I think it is about time someone made a more
         | general extension that can apply this across a wide variety of
         | sites that misuse the `Accept` header for unwanted behavior.
         | 
         | (Also, since mangling the Accept header is the best way to
         | avoid unwanted WebP/AVIF/HEIC transcodes without fully
         | disabling support for these better image formats, it'd be nice
         | if that was also rolled into such an extension.)
        
           | 3np wrote:
           | > that misuse the `Accept` header for unwanted behavior
           | 
           | Is there any other "misuse" to be aware of apart from just
           | serving formats you don't prefer?
        
             | jchw wrote:
             | Yes, this is exactly what Imgur and Reddit are doing.
             | They're serving you an HTML page that requires JavaScript,
             | riddled with ads, when you intended to link to an image
             | file. This happens because when the user agent navigates to
             | a URL, it prefers text/html over other formats, so it's
             | possible to distinguish it from an <img> fetch. This _is_ a
             | feature, but I do take the stance that it is a misuse of
             | the feature as it is done on Reddit and Imgur, just the
             | same as how abusing the window.open API for popup ads was
             | (and how, in that era, it was relatively promptly taken
             | care of by user agents, back when the word  "user" in user
             | agent meant anything.)
             | 
             | I didn't at any point call serving formats I "don't prefer"
             | (I _do_ prefer AVIF)  "abuse" of the Accept header. I just
             | don't want images that _were_ JPEGs to be transcoded to
             | even lossier WebP /AVIF/HEIC files when I browse to them.
             | Sure, if it's part of the page layout it's not a big deal,
             | but when I'm viewing the original size image, it should be,
             | ideally, the original image. I don't actually care if the
             | image is WebP/AVIF/HEIC natively, that is not a problem.
        
               | 998244353 wrote:
               | I feel like at this point, browsers should _at least_ not
               | prefer text /html if "open image in new tab" or similar
               | is used.
        
         | tourmalinetaco wrote:
         | For iOS you can most likely just get something working with
         | Redirect Web, which from my understanding this app is
         | effectively doing the same thing of redirecting links.
        
         | diavolodeejay wrote:
         | I think you are looking for Sink it for reddit! I have been
         | using it for a while and it works wonderfully
         | 
         | https://apps.apple.com/it/app/sink-it-for-reddit/id644987363...
        
         | smusamashah wrote:
         | I am using a chrome extension that modifies headers[1]. It
         | modifies headers for reddit images.
         | 
         | I have these rules defined inside
         | url:https://preview.redd.it/, domain:true, sub:true,
         | header:Accept, add:true, modify:false, remove:false,
         | header_value:image/*         url:https://i.redd.it/,
         | domain:true, sub:true, header:Accept, add:true, modify:false,
         | remove:false, header_value:image/*
         | 
         | With these defined, an image just opens like an image, without
         | any reddit wrapped around it.
         | 
         | [1] https://chromewebstore.google.com/detail/modify-header-
         | value...
        
       | persnickety wrote:
       | Meanwhile, my entry in the Header Editor extension:
       | 
       | accept image_imgur
       | 
       | Match type: Domain
       | 
       | Match rules: i.imgur.com
       | 
       | Execute type: normal
       | 
       | Header name: accept
       | 
       | Header value: image/avif,image/jxl,image/webp, _/_ ;q=0.8
       | 
       | I have a very similar one for i.reddit.com
       | 
       | Together with Redirector, those might be the two most undervalued
       | extensions I'm using.
        
       | thefz wrote:
       | What's different from Imagus, that works on 90% of the sites I
       | visit?
        
         | nozzlegear wrote:
         | Imagus (never heard of it before) is apparently not on Safari
         | while this one is only for Safari.
        
       | jonplackett wrote:
       | Please make a Giphy version!!!
        
       | bkm wrote:
       | It's still wild to me how "closed" iOS got browser extensions
       | before Chrome on Android.
        
       | nocoiner wrote:
       | I love this idea for an extension and have wanted something to do
       | exactly this, but it doesn't seem to work for me. I checked the
       | enablement and the permissions, but the imgur test image link
       | still loads the full page.
        
         | a1o wrote:
         | Yeah, it's not working for me too in Safari iPhone, if someone
         | figures it out please reply.
        
       | ThrowawayTestr wrote:
       | It's pretty amazing imgur has lasted this long. Free image hosts
       | usually have a limited lifespan.
        
         | lucb1e wrote:
         | Indeed, I thought reddit self-hosting images would be its death
         | for this reason: it's just a moneysink. But it seems to be
         | going well.
         | 
         | Perhaps the rest of the site's traffic is subsidizing what they
         | spend on the image hosting? Or maybe bandwidth and storage
         | costs are finally lower than how much each image costs, given
         | that our eyes haven't gotten any better and so a certain size
         | jpeg is simply good enough?
        
           | ThrowawayTestr wrote:
           | I imagine deleting all the porn certainly helped
        
       | chubs wrote:
       | Does this mean it's possible to make a safari extension to
       | automatically take you to old.reddit.com whenever you hit a
       | reddit link?
        
       ___________________________________________________________________
       (page generated 2024-08-19 23:00 UTC)