A simple and effective bookmarklet to generate a QR code for the current webpage. This bookmarklet opens a popup window displaying the QR code, making it easy to share links quickly. 🔗
- Generates a QR code for the current page URL. 📄
- Displays a loading message ("QR Loading...") while the QR code is being generated. ⏳
- Includes a close button to close the popup. ❌
- Responsive design for optimal viewing on different devices. 📱💻
- Credit for QR code generation via the GoQR API. 🌐
-
Add the Bookmarklet:
- Copy the following code:
javascript:(function(){const url=encodeURIComponent(location.href);const popupUrl=`https://xsyanic.github.io/qr-code-bookmarklet/qrsend/?content=${url}`;const width=420;const height=515;const dualScreenLeft=window.screenLeft!==undefined?window.screenLeft:screen.left;const dualScreenTop=window.screenTop!==undefined?window.screenTop:screen.top;const screenWidth=window.innerWidth||document.documentElement.clientWidth||screen.width;const screenHeight=window.innerHeight||document.documentElement.clientHeight||screen.height;const left=dualScreenLeft+(screenWidth-width)/2;const top=dualScreenTop+(screenHeight-height)/2;window.open(popupUrl,"QRPopup",`scrollbars=yes,resizable=yes,width=${width},height=${height},top=${top},left=${left}`);})();
- Open your web browser and create a new bookmark. 📚
- Name the bookmark (e.g., "Generate QR Code") and paste the copied code into the URL/location field. 🏷️
- Save the bookmark. 💾
- Copy the following code:
-
Generate a QR Code:
- Navigate to any webpage that you want to generate a QR code for. 🌍
- Click the bookmarklet you created. A popup will appear with the QR code for the current page URL. 🎉
This project is licensed under the MIT License. See the LICENSE file for details.