A lightweight browser extension that adds a clean Copy Tweet button to every real tweet on X.com (formerly Twitter).
It works across Chrome, Edge, Brave, Opera, Vivaldi, Firefox, and Safari using a unified /src codebase with platform-specific build folders.
x-copy-tweet/
│
├── src/ # Master source (shared across all browsers)
│ ├── content.js
│ ├── styles.css
│ └── manifest.base.json
│
├── chrome/ # Chrome / Edge / Brave / Opera / Vivaldi (Chromium)
│ ├── manifest.json
│ ├── content.js
│ ├── styles.css
│ └── icon.png
│
├── firefox/ # Firefox MV3-compatible build
│ ├── manifest.json
│ ├── content.js
│ ├── styles.css
│ └── icon.png
│
└── safari/ # Safari Web Extension (Xcode build folder)
└── XCopyTweet/
├── manifest.json
├── content.js
├── styles.css
├── Resources/
│ └── icon.png
└── _metadata.json
| Browser | Support | Folder |
|---|---|---|
| Chrome | Full | /chrome |
| Edge | Full | /chrome |
| Brave | Full | /chrome |
| Opera | Full | /chrome |
| Vivaldi | Full | /chrome |
| Firefox | MV3 | /firefox |
| Safari | MV2 | /safari/XCopyTweet |
- Open:
chrome://extensions - Enable Developer mode
- Click Load unpacked
- Select folder:
/chrome
- Open:
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on
- Select:
/firefox/manifest.json
Safari requires Xcode.
- Open Xcode
- File → Open → select:
/safari/XCopyTweet/
- Build & Run → enable the extension in Safari Preferences → Extensions
Only <article> elements containing tweet text are modified.
No button appears for:
- Likes
- Replies
- Mentions
- Follows
- Suggestions
- System notifications
Button becomes the first icon, maintaining native UX.
Works via:
navigator.clipboard.writeText- Safari/Firefox fallback using
execCommand("copy")
Place your working files in /src.
When you update:
content.js
styles.css
Copy them into:
/chrome
/firefox
/safari/XCopyTweet
(Optionally automate using a build script.)
Implement menu on click for more options- Copy full thread
Copy tweet + username- Options page
- Publish to Chrome Web Store
- Firefox
.xpipackaging - Safari App Store distribution
MIT License - free to use, modify, and distribute.
Created for productivity - copy tweets with one click.
