Skip to content
IsaacJoel06Public

About

A fast, lightweight, privacy-focused browser Extension (Manifest V3) that scans any QR code visible on your screen or inside images, with built-in security screening and zero external network calls. Works on chrome, edge, other chromium based browsers and mozilla firefox

Resources

Stars

153 stars

Watchers

2 watching

Forks

Repository files navigation

QR Snip

A fast, lightweight, privacy-focused WebExtension (Manifest V3) that scans any QR code visible on your screen or inside images, with built-in security screening and zero external network calls.

Supported Browsers: Google Chrome, Microsoft Edge, and Mozilla Firefox 140+.


Key Features

  • Viewport Snipping: Capture and scan any QR code on screen using the toolbar icon or shortcut Alt+Shift+Q.
  • Touch, Pen & Stylus Ready: Full pointer-event support with pointer capture, scroll-lock (touch-action: none), on-screen Cancel button, and accessible ≥44px tap targets.
  • Right-Click Image Scan: Right-click any image on the web and select "Scan QR in this image" for instant decoding without dragging.
  • Cross-Browser Engine: Native WebExtension compatibility across Chromium (Chrome, Edge, Brave) and Firefox.
  • High-DPI & Zoom Resilient: Automatically scales pixel coordinates to match devicePixelRatio and browser zoom settings.
  • 100% Offline & Private: Uses bundled jsQR.min.js. Never contacts remote servers, tracks analytics, or makes network requests.
  • Security Warning Banner: Flags URLs using unencrypted http://, internationalized/punycode lookalike domains, or URL shorteners (bit.ly, tinyurl.com, t.co, etc.) with a clear caution notice before opening.
  • Dangerous Scheme Blocking: Completely blocks javascript: and data: URLs from opening.
  • Dark & Light Mode: Seamlessly matches your operating system theme, with an interactive toggle switch, safely persisted in storage.
  • Restricted Page Warnings: Notifies you with friendly native alerts when triggered on restricted pages (e.g., chrome://, about:, Chrome Web Store, or Firefox Add-ons).
  • Safe Link Handling: Links are never opened automatically. Opening is strictly user-triggered.

Screenshots

image image image

Installation

Google Chrome / Microsoft Edge

  1. Clone or download this repository:
    git clone https://github.com/IsaacJoel06/qr-snip.git
  2. Navigate to chrome://extensions/ (or edge://extensions/).
  3. Toggle on Developer mode in the top-right corner.
  4. Click Load unpacked and select the qr-snip project folder.
  5. Pin QR Snip to your browser toolbar.

Note for Chrome users: Chrome may display a minor developer warning: "Unrecognized manifest key 'scripts'". This is completely safe and occurs because the manifest simultaneously provides a scripts fallback for Firefox MV3. Chrome uses service_worker and runs normally.


Mozilla Firefox (140+)

  1. Open Firefox and go to:
    about:debugging#/runtime/this-firefox
    
  2. Click Load Temporary Add-on...
  3. Select manifest.json inside the qr-snip folder.
  4. Pin QR Snip to your Firefox toolbar.

Note for Firefox users: Temporary add-ons in Firefox remain loaded for your active browser session and are automatically unloaded when Firefox is fully closed or restarted. To keep it permanently installed, the add-on can be self-signed via AMO.


Usage

Action Shortcut / Trigger Description
Start Snip Alt+Shift+Q or click extension icon Dims the page; drag a rectangle over any QR code with mouse, touch, or pen.
Scan Image Right-click image → Scan QR in this image Scans an image element directly without selecting an area.
Cancel Snip Esc or tap on-screen Cancel button Cancels current selection (ideal for touchscreen devices without an Esc key).
Close Popup Esc or click ✕ Dismisses the result toast notification.
Toggle Theme Click theme button in toast header Switches between System Auto, Dark, and Light themes.

Testing

A complete testing guide with an interactive checklist is available in TESTING.md. Open test.html directly in any browser to verify all features.


Known issues

  • Firefox for Android / mobile mode: scanning is unreliable right now. On some pages the selected area doesn't match what gets scanned, and some QR codes aren't recognized. Chrome-based browsers on desktop work best. I'm currently working on a fix.

Privacy & Security

  • Zero Data Collection: QR Snip does not track, collect, or transmit any user information.
  • No Remote Dependencies: All scanning occurs strictly within your browser's memory using bundled local scripts.
  • Minimal Permissions: Uses only activeTab, scripting, contextMenus, and notifications. No host permissions (<all_urls>) requested.
  • Read our full PRIVACY.md for details.

Development & Contribution

  1. Fork the repository and create your feature branch:
    git checkout -b feature/my-enhancement
  2. Make your changes and test across both Chrome and Firefox using test.html and TESTING.md.
  3. Commit your changes and open a Pull Request.

License

Distributed under the MIT License. Copyright © 2026 Isaac Joel Mithran.

About

A fast, lightweight, privacy-focused browser Extension (Manifest V3) that scans any QR code visible on your screen or inside images, with built-in security screening and zero external network calls. Works on chrome, edge, other chromium based browsers and mozilla firefox

Resources

Stars

153 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages