Skip to content

Auto Copy Text - A powerful Chrome extension that automatically copies text when you click on it. Perfect for quick text selection and copying without the need for keyboard shortcuts.

Notifications You must be signed in to change notification settings

hammadch09/AutoCopyText

Repository files navigation

Auto Copy Text - Chrome Extension

A powerful Chrome extension that automatically copies text when you click on it. Perfect for quick text selection and copying without the need for keyboard shortcuts.

Features

Auto Copy on Click - Click on any selected text to copy it automatically
📋 Keyboard Shortcut Support - Also works with Ctrl+C (Cmd+C on Mac)
🔔 Visual Notifications - Get instant feedback when text is copied
⚙️ Customizable Settings - Toggle features on/off as needed
📊 Usage Statistics - Track how much text you've copied
🎨 Modern UI - Clean, intuitive popup interface
🌐 Universal Compatibility - Works on all websites
🔒 Privacy Focused - No data collection, works locally

Installation

Method 1: Load as Unpacked Extension (Development)

  1. Download the Extension

    • Clone or download this repository to your local machine
    • Extract the files to a folder (e.g., AutoCopyText)
  2. Open Chrome Extensions Page

    • Open Google Chrome
    • Navigate to chrome://extensions/
    • Or go to Menu → More Tools → Extensions
  3. Enable Developer Mode

    • Toggle the "Developer mode" switch in the top-right corner
  4. Load the Extension

    • Click "Load unpacked"
    • Select the folder containing the extension files
    • The extension should now appear in your extensions list
  5. Pin the Extension (Optional)

    • Click the puzzle piece icon in the Chrome toolbar
    • Find "Auto Copy Text" and click the pin icon

Method 2: Install from Chrome Web Store (Coming Soon)

The extension will be available on the Chrome Web Store soon for easy installation.

Usage

Basic Usage

  1. Select Text - Highlight any text on a webpage using your mouse
  2. Click to Copy - Click on the selected text to copy it automatically
  3. Get Feedback - See a notification confirming the text was copied

Advanced Features

  • Keyboard Shortcuts: Use Ctrl+C (or Cmd+C on Mac) to copy selected text
  • Right-Click Menu: Right-click on selected text and choose "Copy Selected Text"
  • Settings Panel: Click the extension icon to access settings and statistics

Settings

Access the settings by clicking the extension icon in your browser toolbar:

  • Enable Auto Copy: Turn the extension on/off
  • Show Notifications: Display copy confirmations
  • Copy on Keyboard Shortcut: Also copy when using Ctrl+C
  • Copy on Double Click: Copy text when double-clicking on it

File Structure

AutoCopyText/
├── manifest.json          # Extension configuration
├── content.js            # Content script for text handling
├── content.css           # Styles for visual feedback
├── background.js         # Background script (service worker)
├── popup.html            # Extension popup interface
├── popup.js              # Popup functionality
├── popup.css             # Popup styling
├── icons/                # Extension icons
│   ├── icon.svg          # Source SVG icon
│   ├── icon16.png        # 16x16 icon
│   ├── icon32.png        # 32x32 icon
│   ├── icon48.png        # 48x48 icon
│   └── icon128.png       # 128x128 icon
└── README.md             # This file

Technical Details

Permissions

  • activeTab: Access to the current tab for text selection
  • clipboardWrite: Write text to the system clipboard
  • storage: Save user settings and statistics

Browser Compatibility

  • Chrome 88+ (Manifest V3)
  • Edge 88+ (Chromium-based)
  • Other Chromium-based browsers

Performance

  • Lightweight: ~50KB total size
  • Minimal memory usage
  • No background processing when inactive
  • Efficient event handling

Development

Prerequisites

  • Google Chrome or Chromium-based browser
  • Basic knowledge of JavaScript, HTML, and CSS

Building from Source

  1. Clone the repository:

    git clone https://github.com/yourusername/auto-copy-text.git
    cd auto-copy-text
  2. Load the extension in Chrome (see Installation section)

  3. Make changes to the source files

  4. Reload the extension in chrome://extensions/

Code Structure

  • Content Script (content.js): Handles text selection and click events
  • Background Script (background.js): Manages extension lifecycle and storage
  • Popup (popup.html/js/css): User interface for settings and statistics

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

Troubleshooting

Common Issues

Extension not working:

  • Ensure the extension is enabled in chrome://extensions/
  • Check that you have the necessary permissions
  • Try refreshing the webpage

Text not copying:

  • Make sure text is selected before clicking
  • Check if the website has copy restrictions
  • Try using the keyboard shortcut instead

Notifications not showing:

  • Check the "Show Notifications" setting in the popup
  • Ensure your browser allows notifications

Settings not saving:

  • Check if you're signed into Chrome (for sync)
  • Try clearing and re-adding the extension

Getting Help

  • Check the Issues page
  • Create a new issue with detailed information
  • Include browser version and error messages

Privacy Policy

This extension:

  • ✅ Works entirely locally on your device
  • ✅ Does not collect or transmit any personal data
  • ✅ Does not track your browsing activity
  • ✅ Stores settings locally in your browser
  • ✅ Only accesses text you explicitly select

License

MIT License - see LICENSE file for details.

Changelog

Version 1.0.0

  • Initial release
  • Auto copy on text click
  • Keyboard shortcut support
  • Visual notifications
  • Settings panel
  • Usage statistics
  • Modern UI design

Roadmap

  • Dark mode support
  • Custom keyboard shortcuts
  • Text formatting options
  • Copy history
  • Multiple language support
  • Firefox extension version

Support

If you find this extension useful, please:

  • ⭐ Star the repository
  • 🐛 Report bugs
  • 💡 Suggest features
  • 📢 Share with others

Made with ❤️ for productivity enthusiasts

About

Auto Copy Text - A powerful Chrome extension that automatically copies text when you click on it. Perfect for quick text selection and copying without the need for keyboard shortcuts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published