How clipboard detection works
When you open the extension, it checks your clipboard for URLs. If it finds a URL longer than 500 characters, it displays a special action to trace it:trace-redirects.tsx
Why 500 characters?
URLs longer than 500 characters often contain:- Extensive tracking parameters - Multiple marketing tokens and analytics IDs
- Encoded data - Base64 or URL-encoded content in parameters
- Redirect chains - URLs that encode the destination URL as a parameter
- Email tracking - Newsletter platforms that add long unique identifiers
- Difficult to paste in search bars without truncation
- Hard to read or analyze visually
- Likely to benefit from tracking removal
The 500-character threshold is chosen to catch URLs that are genuinely problematic while avoiding false positives on normal long URLs.
URL detection criteria
The clipboard content must meet both criteria to trigger detection:- Start with a protocol - Must begin with
http://orhttps:// - Exceed length threshold - Must be longer than 500 characters
trace-redirects.tsx
Using clipboard URLs
When a long URL is detected, you see a dedicated list item: Title - “Paste Long URL From Clipboard” Subtitle - Preview of the first 100 characters Accessory - Character count formatted as “X.Xk chars” Actions available:- Trace This URL - Start analyzing the redirect chain
- Copy Full URL - Copy the complete URL to clipboard
- Clear Clipboard Detection - Dismiss the detected URL
The extension automatically displays the character count in kilocharacters (e.g., “1.5k chars”) to give you a sense of the URL’s length.
Processing long URLs
When you trace a long URL, the extension shows progress feedback:trace-redirects.tsx
Manual clipboard check
If automatic detection doesn’t work or you copy a URL after opening the extension, you can manually trigger clipboard detection:- Copy a URL to your clipboard
- Open Redirect Trace
- Press
Cmd+Vto check clipboard - The extension analyzes clipboard content
trace-redirects.tsx
Character count display
The extension shows URL length in different formats: In search results:trace-redirects.tsx
trace-redirects.tsx
trace-redirects.tsx
Workflow comparison
Standard workflow (short URLs)
Standard workflow (short URLs)
For URLs under 500 characters:
- Open Redirect Trace
- Paste URL in search bar
- Results appear automatically after 500ms debounce
- View redirect chain
Clipboard workflow (long URLs)
Clipboard workflow (long URLs)
For URLs over 500 characters:
- Copy URL to clipboard
- Open Redirect Trace
- See “Long URL detected” notification
- Select “Paste Long URL From Clipboard” item
- Press Enter or click “Trace This URL”
- View redirect chain
The clipboard workflow prevents performance issues that could occur from pasting extremely long URLs into the search bar’s debounced input.
Clipboard privacy
The extension:- Only reads clipboard when you open it - No background clipboard monitoring
- Only checks for URLs - Ignores non-URL content
- Doesn’t store clipboard data - Content is only held in component state while the extension is open
- Handles access failures gracefully - Falls back to manual workflow if clipboard access is denied
trace-redirects.tsx
You can always use the manual search bar workflow if you prefer not to use clipboard integration.