Pastes clipboard content in chunks to avoid attachment detection. Ctrl+V pastes line-by-line with configurable delays.
☕ If you find this tool helpful & would like to support its maintenance, please consider leaving a tip on:
Thank you! :-)
🖼 For a quick impression of this script, refer to the screenshots/gif at the bottom.
Pastes clipboard content line-by-line in chunks to prevent Claude.ai from forcing large pastes into file attachments. Every line lands directly in the input field — fully in context, ready to work with.
When you paste a large block of text into Claude's chat input, Claude automatically converts it into a file attachment — there's no prompt, no option to keep it inline. The core problem is how Claude processes attached files: rather than reading the full content into its context window, it may use grep or selective extraction to find relevant sections. This means Claude is working with a partial view of your content — which matters most when you need it to refactor, review, or reason over the whole thing at once.
Pasting inline forces the entire content into Claude's context window from the start. The script also prevents:
.txt file attachment instead of appearing in the input fieldThis script splits your paste into small chunks with brief delays between them, staying under Claude's detection threshold so every line lands directly in the input field.
| Action | Result |
|---|---|
| Ctrl+V (normal paste) | If text exceeds the line threshold, it's split into chunks and pasted sequentially |
| Small pastes | Passed through normally — no interception |
| Alt+P | Toggle chunked paste on/off |
| Click floating 📋 button | Toggle chunked paste on/off |
All settings are accessible via your userscript manager's menu (click the extension icon):
| Setting | Default | Range |
|---|---|---|
| Lines per chunk | 50 | 1–500 |
| Delay between chunks | 10ms | 1–1000ms |
| Min lines to chunk | 5 | 1–100 |
| Progress indicator | ON | ON/OFF |
| Enabled | ON | ON/OFF |
Settings are persisted across sessions via GM_getValue/GM_setValue.