A WebExtension for Chrome and Firefox that adds a Capture option under X/Twitter's repost menu, below Quote.
When Capture is clicked, the extension:
- Closes/hides the repost menu so it does not appear in the screenshot.
- Scrolls the source post into capture position with a 75px top offset to avoid sticky banners.
- Captures the visible tab in memory.
- Crops the screenshot to the post border width and caps height at 2× the post width.
- Opens the overlay composer for a new post.
- Uploads the screenshot as media.
The extension popup has a toggle to turn the Capture menu option on or off. When off, Capture is removed from repost menus. When on, it appears again.
- Chrome / Chromium: use
manifest.json. - Firefox: copy
manifest.firefox.jsonovermanifest.jsonbefore loading or packaging.
Firefox supports Manifest V3, but its background-script handling differs from Chrome in some versions. This repo includes a Firefox-specific manifest that uses background.scripts instead of Chrome's background.service_worker.
- Open
chrome://extensions. - Enable Developer mode.
- Click Load unpacked.
- Select this folder.
- Copy
manifest.firefox.jsontomanifest.json. - Open
about:debugging#/runtime/this-firefox. - Click Load Temporary Add-on.
- Select
manifest.json.
X changes its DOM often, so selectors may need maintenance. The extension uses current accessibility labels and data-testid attributes where possible.
Browser extensions can capture the visible tab, not an arbitrary hidden page region. For longer posts, the extension scrolls the post into view, captures the visible viewport, then crops. If the post is taller than 2× its width, the crop is intentionally capped.
Programmatic media upload depends on X exposing an input[type=file] in the composer. If X blocks the synthetic file upload path, the extension falls back to copying the screenshot image to your clipboard and shows a toast telling you to paste it manually.
manifest.json— Chrome MV3 manifestmanifest.firefox.json— Firefox MV3 manifest variantbackground.js— browser screenshot bridgecontent.js— X UI injection, capture, crop, composer automationpopup.html,popup.css,popup.js— extension popup with on/off toggleicons/— generated toolbar/extension icons