offline-qr-code
offline-qr-code copied to clipboard
QR code scanner/reader
There are also many JS libraries for just scanning a QR code:
- https://github.com/schmich/instascan
- https://serratus.github.io/quaggaJS/
- https://github.com/dwa012/html5-qrcode
- https://github.com/edi9999/jsqrcode
- https://github.com/schmich/instascan
So maybe we could integrate that, too.
Features may be:
- right-click on image (or canvas, or so) -> decode QR code
- click on toolbar button -> select some button there (note this button should of course not overlay the shown QR code, maybe just move in a bit when hovered) OR use context menu entry on browser_action icon -> scan from webcam
This add-on shows what I mean: https://addons.mozilla.org/de/firefox/addon/qrcode-generator-and-reader/
Possibly a good lib: https://github.com/zxing-js/library
@rugk Saw this after your link from #213
right-click on image (or canvas, or so) -> decode QR code I like this. Not too invasive and it's a good contextual option.
... scan from webcam This not so much; I like that this is a small extension. More permissions and camara use would scare me off.
Just my 2 cents.
More permissions and camara use would scare me off.
This would definitively only be requested at runtime when you use it. (It would use WebRTC, which has this built-in.) An add-on actually does not have more permissions than a usual web page in this regards…