Skip to content

A simple one-click bookmarklet that generates QR codes for any webpage, making it easy to share links instantly by scanning.

License

Notifications You must be signed in to change notification settings

xsyanic/qr-code-bookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📱 QR Code Bookmarklet

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. 🔗

Features ✨

  • 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. 🌐

Usage 🚀

  1. 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. 💾
  2. 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. 🎉

Demo 📸

QR Code Popup Demo

License 📄

This project is licensed under the MIT License. See the LICENSE file for details.

Credits 🙌

About

A simple one-click bookmarklet that generates QR codes for any webpage, making it easy to share links instantly by scanning.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages