This is just a scripting exercise. It's better to use QR Code, a browser extension.
Acknowledgement
jsQR.js
Rating: 0
Flag aspen138/识别网页上的二维码
Are you sure you want to flag this script for potential inspection by a Moderator?
Donate for the site OpenUserJS
Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.