Ask HN: Why are QR codes not clickable links on browsers?

19 points | by obilgic 10 hours ago

7 comments

  • Leftium 9 hours ago
    iOS Safari has a special "QR" menu if you long-tap a QR code.

    And this is built in to Android OS: "Search your screen" or "Circle to Search."[1]

    [1]: https://www.android.com/ai/circle-to-search/

    • daemonologist 7 hours ago
      Wow it even lets you copy the URL! (This is a gripe I've always had with Lens - it can read QR codes but doesn't let you copy the URL, so if you got redirected there's no easy way to get the original link.)
  • zzo38computer 10 hours ago
    The HTML file that has them does not make it a link, I suppose.

    A browser extension perhaps could add a command to decode a QR code (and possibly other barcodes), or an external program could do so from a screen capture or file or camera or any other video source (allowing it to work independently of the web browser).

  • killingtime74 9 hours ago
    If they were then you'd have to do one of two things: 1) ocr all images to check if they are QR codes 2) embed metadata saying that this image is a QR code and a link. If you were betting on the metadata then why not just create a link directly...
    • jimmydin7 9 hours ago
      i think using embeded metadata would be the way to go, but we would somehow need to inform every dev in the world to do so
  • al_borland 9 hours ago
    I would hope the developer would add a link the user could simply click, instead of needing to translate a QR code to get the link.

    The assumptions made around a lot of QR codes don’t make much sense to me.

  • _dwivedi 10 hours ago
    I guess it is mostly because of the reason that QR codes are not always a URL! It might be something related to a payment or a wifi conf. Plus I don't think that browsers scanning every image for QR codes by default would be very great for it's efficiency and overall user privacy. But I think it could always be a good option to have especially for QR codes which are link. You can always use a extention though! :)
  • phyrex 9 hours ago
    It's a good idea. Obviously you can't preemptively OCR all images but having "context menu -> follow link" which works on QR codes and images with links in them seems totally doable do me
    • zzo38computer 3 hours ago
      I think that a separate program might be better, which could be used with any video source in any program, including a QR code made up from multiple pictures or from CSS, or a video, etc. Furthermore, it is not necessarily a URL.

      However, it might also be made as a browser extension in case you do not want to use a separate program, or if you want to be able to follow such links directly without going through another program.

  • fouc 8 hours ago
    sometimes youtube videos show QR codes somewhere on the screen now, and it sure would be nice to be able to easily click on those.