A lightweight and powerful browser extension that replaces short triggers and hotkeys with longer, predefined text snippets.
- Text Triggers: Create snippets that expand when you type a specific trigger (e.g., typing
/sigexpands to your full email signature). - Hotkey Triggers: Assign global keyboard shortcuts (e.g.,
Ctrl+Shift+1) to your most-used snippets for instant expansion. - Rich Text Support: Create snippets with formatting like bold, italics, links, and more, which will be rendered correctly in rich text editors (like Gmail, Google Docs).
- Simple Management: An intuitive options page to add, edit, and delete your snippets.
- Import & Export: Easily back up your snippets to a JSON file or import them to a new browser or computer.
- Cross-Browser Compatibility: Works seamlessly on both Chrome (and other Chromium browsers) and Firefox.
The repository is organized to support multiple browser targets from a single codebase.
QuickText/
├── Chromium/
│ ├── background.js # Service worker for Chrome
│ ├── content_script.js # Injects into web pages
│ ├── options.html # Options page UI
│ ├── options.js # Options page logic
│ ├── manifest.json # Extension manifest for Chrome (V3)
│ └── images/ # Icons for Chrome
│
├── Mozilla/
│ ├── background.js # Background script for Firefox
│ ├── content_script.js # Injects into web pages
│ ├── options.html # Options page UI
│ ├── options.js # Options page logic
│ ├── manifest.json # Extension manifest for Firefox
│ └── images/ # Icons for Firefox
│
└── README.md # You are here!
- Clone this repository to your local machine.
- Open Chrome and navigate to
chrome://extensions. - Enable Developer mode using the toggle in the top-right corner.
- Click the Load unpacked button.
- Select the
QuickText/Chromiumfolder from the cloned repository. - The QuickText icon will appear in your browser's toolbar.
- Clone this repository to your local machine.
- Open Firefox and navigate to
about:debugging. - Click on This Firefox in the sidebar.
- Click the Load Temporary Add-on... button.
- Navigate into the
QuickText/Mozillafolder and select themanifest.jsonfile. - The QuickText icon will appear in your browser's toolbar.
Or download from Mozilla Add-ons: https://addons.mozilla.org/en-US/firefox/addon/gxquicktext/
-
Open the Options Page: Click the QuickText icon in your browser's toolbar to open the options page.
-
Create a Snippet:
- Trigger:
- For a text trigger, enter a keyword that starts with a
/(e.g.,/hello). - For a hotkey trigger, enter a key combination (e.g.,
Ctrl+Shift+H). Modifiers (Ctrl,Alt,Shift,Meta) are supported.
- For a text trigger, enter a keyword that starts with a
- Expansion Value:
- Enter the text you want the trigger to expand into.
- For the Chromium version, you can toggle the Rich Text editor to add formatting.
- Click Add Snippet.
- Trigger:
-
Trigger a Snippet:
- Go to any text field on any website (a textarea, an input box, a rich text editor).
- For text triggers: Type your trigger (e.g.,
/hello) and it will automatically be replaced with the expansion value. - For hotkey triggers: Press the key combination you defined (e.g.,
Ctrl+Shift+H) and the expansion value will be inserted at your cursor's position.
-
Manage Snippets:
- Use the Edit and Delete buttons in the snippet list on the options page to manage your snippets.
- Use the Export button to save all your snippets to a
.jsonfile. - Use the Import button to load snippets from a previously exported file.
Contributions are welcome! If you have ideas for new features, bug fixes, or improvements, please feel free to:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourAmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/YourAmazingFeature). - Open a Pull Request.
This project is open-source and available under the MIT License.

