ShareText is a Firefox extension that allows you to quickly generate QR codes for selected text or URLs from your browser, making it easy to share content with your mobile devices.
- π± Generate QR codes from selected text with a right-click
- π Generate QR codes from right-clicked URL links
- π Automatically handles special characters and encoding
- β‘ QR codes are generated instantly in a popup window
- π¨ Clean, minimalist interface
- π Privacy-focused - all processing happens locally in your browser
QR code generation in action - right-click any selected text or link
- Install directly from the Firefox Add-ons Store
-
Download the extension:
- Clone this repository:
git clone https://github.com/ktauchathuranga/sharetext-firefox.git
- Or download as ZIP and extract
- Clone this repository:
-
Load in Firefox:
- Open Firefox
- Navigate to
about:debugging
- Click "This Firefox" in the sidebar
- Click "Load Temporary Add-on..."
- Select the
manifest.json
file from the extension folder
-
For permanent installation:
- Package as
.xpi
file or install from AMO
- Package as
- Select any text on a webpage
- Right-click on the selected text
- Choose "Share this text as QR code" from the context menu
- A popup window will open with the generated QR code
- Scan with your phone to instantly access the text
- Right-click on any link on a webpage
- Choose "Share this link as QR code" from the context menu
- A popup window will open with the QR code for the URL
- Scan with your phone to open the link on your mobile device
- π² Share long URLs with your phone quickly
- π Transfer text snippets between devices
- π Share links during presentations
- π± Quick mobile access to desktop content
- π― Share content without typing on mobile
sharetext-firefox/
βββ manifest.json # Extension manifest
βββ background.js # Background script for context menus
βββ popup.html # QR code display page
βββ popup.js # QR code generation logic
βββ icon.png # Extension icon
βββ libs/
β βββ qrcode.js # QR code library
β βββ qrcode.min.js # Minified QR code library
βββ README.md # This file
- Manifest Version: 2 (Firefox standard)
- Permissions:
contextMenus
,activeTab
- Minimum Firefox Version: 57.0
- QR Code Library: qrcode.js
- No external dependencies - works entirely offline
- β All QR code generation happens locally in your browser
- β No data is sent to external servers
- β No tracking or analytics
- β No internet connection required for QR code generation
- β
Only requires minimal permissions (
contextMenus
,activeTab
)
- Firefox Developer Edition (recommended) or regular Firefox
- Basic knowledge of WebExtensions API
- Clone the repository
- Make your changes
- Test using
about:debugging
- Package using
web-ext build
(if you have web-ext installed)
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- β Firefox 57+ (Primary target)
β οΈ Chrome version available separately
- Make sure you have selected text or right-clicked on a link
- Check browser console for errors (
F12
β Console)
- Ensure the extension is properly loaded
- Try reloading the webpage
- Check if the extension is enabled in
about:addons
- Verify all files are present
- Check
manifest.json
syntax - Look for errors in
about:debugging
This project is open-source and available under the MIT License.
- π Report bugs: GitHub Issues
- π‘ Feature requests: GitHub Issues
- ShareText Chrome Extension - Chrome version
Made with β€οΈ for the Firefox community
If you find this extension useful, please consider giving it a β on GitHub or leaving a review on the Firefox Add-ons Store!