Claude | Chunked Paste - Bypass Attachment Detection

Pastes clipboard content in chunks to avoid attachment detection. Ctrl+V pastes line-by-line with configurable delays.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
piknockyou
Dnevne instalacije
0
Ukupnih instalacija
13
Ocjene
0 0 0
Verzija
1.5
Stvoreno
26.02.2026.
Ažurirano
26.02.2026.
Size
18,7 KB
Licenza
AGPL-3.0
Primjenjuje se

☕ If you find this tool helpful & would like to support its maintenance, please consider leaving a tip on:

https://ko-fi.com/piknockyou

Thank you! :-)


🖼 For a quick impression of this script, refer to the screenshots/gif at the bottom.


Claude | Chunked Paste — Bypass Attachment Detection

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.


Why You Need This

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:

  • Forced attachment — your pasted text becomes a .txt file attachment instead of appearing in the input field
  • Lost formatting context — attachments are processed differently than inline text; Claude may not treat the content the way you intended
  • Interrupted workflow — you have to delete the attachment, then figure out another way to get your text into the input

This 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.


How It Works

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

Features

Chunked Paste Engine

  • Splits clipboard content by lines and pastes in configurable chunk sizes
  • Configurable delay between chunks (default: 10ms)
  • Minimum line threshold before chunking activates (default: 5 lines)
  • Works with Claude's ProseMirror editor, including inside code blocks

Progress Indicator

  • Real-time progress bar showing chunks completed, total lines, and percentage
  • Auto-dismisses after completion
  • Can be disabled in settings

Floating Toggle Button

  • Small 📋 button in the bottom-right corner
  • Cyan glow = active, gray = disabled
  • Hover tooltip shows current state and keyboard shortcut

Configuration

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.


Installation

  1. Install Violentmonkey (recommended), Tampermonkey, or Greasemonkey
  2. Install this script
  3. Paste into Claude's chat input as usual — chunking happens automatically for large pastes

Notes

  • Not a rate-limit bypass — this only prevents the paste-as-attachment detection, not any API or usage limits
  • Code blocks supported — special handling for ProseMirror code block nodes so formatting is preserved
  • Disable anytime — Alt+P or click the floating button to let normal paste behavior through