frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

19•obilgic•16h ago

Comments

zzo38computer•15h 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).

_dwivedi•15h 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! :)
killingtime74•15h 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•14h 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
phyrex•14h 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•8h 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.

al_borland•14h 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.

Leftium•14h 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•12h 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.)
fouc•13h 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.
paulwilsonn•1h ago
Because browsers treat QR codes as images, not data. They don’t natively parse or extract links unless you use a camera or scanner API.

It’s mostly a UX and security choice-automatically turning any image with a QR into a clickable link could be abused for phishing or tracking.

That said, it’d be cool if browsers offered a “Scan QR in page” option like mobile OSes do.

gethly•14m ago
They would require some kind of built-in OCR. And I can easily see this having a strong potential for security bugs. On the other hand, I'd like to have such support, especially on mobile phone in order to bypass the need to use the phone's camera for that OCR step.

Tell HN: Mechanical Turk is twenty years old today

73•csmoak•16h ago•47 comments

Doo: A Simple, Fast Programming Language Built on Rust and LLVM

5•nynrathod•3h ago•2 comments

Ask HN: Where to begin with "modern" Emacs?

204•weakfish•1d ago•107 comments

Ask HN: Anyone else use FreePascal as their low level language?

59•rlawson•1w ago•43 comments

Tell HN: Azure outage

881•tartieret•4d ago•804 comments

Ask HN: Who uses open LLMs and coding assistants locally? Share setup and laptop

338•threeturn•2d ago•183 comments

Ask HN: Is Common Crawl used exhaustively by any search engine?

8•n1xis10t•11h ago•1 comments

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

19•obilgic•16h ago•12 comments

Ask HN: Alternatives to Clay for Enrichment?

3•Poomba•19h ago•4 comments

Ask HN: Self Hostable Alternative to Jsonbin.io?

8•jimmydin7•15h ago•1 comments

Ask HN: Not treated respectfully by colleague – advice?

115•golly_ned•1w ago•125 comments

Tell HN: Twilio support replies with hallucinated features

157•haute_cuisine•4d ago•40 comments

Ask HN: Who else thinks they should add GOTO statements to Python?

2•n1xis10t•11h ago•5 comments

Ask HN: Why I rarely see game dev startup here?

19•blindprogrammer•2d ago•9 comments

Ask HN: What notably hasn't changed in the past 10 years?

14•cjbarber•1d ago•12 comments

Ask HN: Is anybody running a successful non-subscription business?

13•fandorin•3d ago•32 comments

What is the best way to use Claude Code from my phone?

4•tripleyeti•1d ago•5 comments

How are you handling identities for AI agents?

8•andylow•1d ago•7 comments

Scientists can't define consciousness, yet we think AI will have it

15•f_of_t_•2d ago•24 comments

Ask HN: Does anyone else with astigmatism not like dark-mode?

10•morkalork•2d ago•16 comments

Tell HN: OpenAI now requires ID verification and won't refund API credits

205•retube•1w ago•121 comments

Ask HN: Is Udacity now geo blocking countries?

5•estebarb•3d ago•0 comments

Ask HN: Is AWS down again?

85•ajdude•6d ago•37 comments

Ask HN: How to deal with long vibe-coded PRs?

7•philippta•5d ago•14 comments

Ask HN: Thoughts on /etc/hosts instead of DNS for production applications?

13•notepad0x90•4d ago•13 comments

You've reached the end!