|
| 1 | +# cpyurl Features Overview |
| 2 | + |
| 3 | +## 🎯 What does cpyurl do? |
| 4 | + |
| 5 | +cpyurl is a Chrome extension that makes copying URLs super easy and flexible. Instead of manually selecting and copying URLs from the address bar, you can: |
| 6 | + |
| 7 | +- Press a keyboard shortcut to instantly copy |
| 8 | +- Choose different formats (Plain, Markdown, HTML) |
| 9 | +- Get visual feedback when copying |
| 10 | +- Customize your preferences |
| 11 | + |
| 12 | +## 🚀 Main Features |
| 13 | + |
| 14 | +### 1. Keyboard Shortcut Copy |
| 15 | + |
| 16 | +**How it works:** |
| 17 | +- Press `Alt+C` (Windows/Linux) or `MacCtrl+C` (macOS) |
| 18 | +- Current tab URL is instantly copied to clipboard |
| 19 | +- Uses your default format setting |
| 20 | + |
| 21 | +**Use case:** |
| 22 | +You're browsing documentation and want to quickly share the link in Slack → Press Alt+C → Paste in Slack. Done! |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +### 2. Popup Interface |
| 27 | + |
| 28 | +**How it works:** |
| 29 | +- Click the extension icon in Chrome toolbar |
| 30 | +- See the current URL displayed |
| 31 | +- Choose which format to copy |
| 32 | + |
| 33 | +**What you see:** |
| 34 | +``` |
| 35 | +┌─────────────────────────────────┐ |
| 36 | +│ cpyurl │ |
| 37 | +│ Copy URL to clipboard │ |
| 38 | +├─────────────────────────────────┤ |
| 39 | +│ Current URL: │ |
| 40 | +│ https://github.com/... │ |
| 41 | +│ │ |
| 42 | +│ [📋 Copy Plain] │ |
| 43 | +│ [📝 Copy Markdown] │ |
| 44 | +│ [🔗 Copy HTML] │ |
| 45 | +│ │ |
| 46 | +│ Settings │ |
| 47 | +│ Default Format: [Plain ▼] │ |
| 48 | +│ ☐ Auto-close popup after copy │ |
| 49 | +└─────────────────────────────────┘ |
| 50 | +``` |
| 51 | + |
| 52 | +--- |
| 53 | + |
| 54 | +### 3. Multiple Copy Formats |
| 55 | + |
| 56 | +#### Plain Format |
| 57 | +``` |
| 58 | +https://github.com/DavidNiessen/cpyurl |
| 59 | +``` |
| 60 | +**Best for:** Sharing raw URLs, pasting in address bar |
| 61 | + |
| 62 | +#### Markdown Format |
| 63 | +``` |
| 64 | +[cpyurl](https://github.com/DavidNiessen/cpyurl) |
| 65 | +``` |
| 66 | +**Best for:** GitHub README, Notion, Obsidian, Markdown documents |
| 67 | + |
| 68 | +#### HTML Format |
| 69 | +```html |
| 70 | +<a href="https://github.com/DavidNiessen/cpyurl">cpyurl</a> |
| 71 | +``` |
| 72 | +**Best for:** HTML emails, web development, blog posts |
| 73 | + |
| 74 | +--- |
| 75 | + |
| 76 | +### 4. Visual Feedback |
| 77 | + |
| 78 | +#### Toast Notifications |
| 79 | +- Appear in bottom-right corner |
| 80 | +- Show success/error messages |
| 81 | +- Auto-dismiss after 3 seconds |
| 82 | + |
| 83 | +**Examples:** |
| 84 | +- ✅ "URL copied to clipboard!" |
| 85 | +- ⚠️ "Cannot copy URL from restricted pages..." |
| 86 | +- ❌ "Failed to copy URL. Please try again." |
| 87 | + |
| 88 | +#### Icon Badge |
| 89 | +- Shows ✓ (green) on success |
| 90 | +- Shows ✗ (red) on error |
| 91 | +- Disappears after 2 seconds |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +### 5. Settings & Customization |
| 96 | + |
| 97 | +#### Default Format |
| 98 | +Choose which format is used when you press the keyboard shortcut: |
| 99 | +- Plain (default) |
| 100 | +- Markdown |
| 101 | +- HTML |
| 102 | + |
| 103 | +#### Auto-Close Popup |
| 104 | +When enabled, popup automatically closes after copying (useful for quick workflows) |
| 105 | + |
| 106 | +#### Settings Sync |
| 107 | +Settings are saved to Chrome sync storage, so they work across all your devices! |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +### 6. Error Handling |
| 112 | + |
| 113 | +#### Restricted Pages |
| 114 | +Chrome doesn't allow extensions to access certain pages: |
| 115 | +- `chrome://` pages (extensions, settings, etc.) |
| 116 | +- `edge://` pages |
| 117 | +- `about:` pages |
| 118 | +- `view-source:` pages |
| 119 | + |
| 120 | +**What happens:** |
| 121 | +- Warning notification appears |
| 122 | +- Red X badge shows on icon |
| 123 | +- No crash or silent failure |
| 124 | + |
| 125 | +#### No Active Tab |
| 126 | +If somehow there's no active tab: |
| 127 | +- Error notification: "No active tab found" |
| 128 | +- Graceful handling, no crash |
| 129 | + |
| 130 | +--- |
| 131 | + |
| 132 | +## 💡 Real-World Use Cases |
| 133 | + |
| 134 | +### For Developers |
| 135 | +``` |
| 136 | +Scenario: Sharing code documentation |
| 137 | +1. Find useful docs page |
| 138 | +2. Press Alt+C |
| 139 | +3. Paste in team chat |
| 140 | +Format: Markdown for GitHub/Slack |
| 141 | +``` |
| 142 | + |
| 143 | +### For Content Creators |
| 144 | +``` |
| 145 | +Scenario: Adding references to blog post |
| 146 | +1. Research articles |
| 147 | +2. Click extension → Copy HTML |
| 148 | +3. Paste directly into HTML editor |
| 149 | +Format: HTML with proper anchor tags |
| 150 | +``` |
| 151 | + |
| 152 | +### For Students/Researchers |
| 153 | +``` |
| 154 | +Scenario: Building bibliography |
| 155 | +1. Find research paper |
| 156 | +2. Copy as Markdown |
| 157 | +3. Add to Notion/Obsidian notes |
| 158 | +Format: Markdown for note-taking apps |
| 159 | +``` |
| 160 | + |
| 161 | +### For Quick Sharing |
| 162 | +``` |
| 163 | +Scenario: Sharing funny article with friend |
| 164 | +1. Press Alt+C while reading |
| 165 | +2. Paste in WhatsApp/Email |
| 166 | +Format: Plain URL |
| 167 | +``` |
| 168 | + |
| 169 | +--- |
| 170 | + |
| 171 | +## 🎨 Design Philosophy |
| 172 | + |
| 173 | +- **Fast:** Keyboard shortcut for instant copying |
| 174 | +- **Flexible:** Multiple formats for different use cases |
| 175 | +- **Friendly:** Clear feedback, no confusion |
| 176 | +- **Safe:** Handles errors gracefully |
| 177 | +- **Simple:** No complex configuration needed |
| 178 | + |
| 179 | +--- |
| 180 | + |
| 181 | +## 🔒 Privacy & Permissions |
| 182 | + |
| 183 | +### Required Permissions: |
| 184 | +- **tabs**: To get current tab URL |
| 185 | +- **activeTab**: To access active tab info |
| 186 | +- **scripting**: To execute clipboard copy |
| 187 | +- **clipboardWrite**: To write to clipboard |
| 188 | +- **notifications**: To show toast messages |
| 189 | +- **storage**: To save your settings |
| 190 | + |
| 191 | +### What we DON'T do: |
| 192 | +- ❌ No tracking |
| 193 | +- ❌ No analytics |
| 194 | +- ❌ No data collection |
| 195 | +- ❌ No external servers |
| 196 | +- ❌ No URL history stored |
| 197 | + |
| 198 | +Everything happens locally in your browser! |
0 commit comments