πŸ“ Unclip_Overflow_JS_Fix.mdv4.4 · 2026-09-05

Unclip Overflow JS Fix

Transcript β€” 25/09/2026 β€” Claude


Andrew

document.querySelectorAll('*').forEach(el => {
const s = getComputedStyle(el);
if (s.overflowY !== 'visible' || s.position === 'fixed' || el.scrollHeight > el.cli
el.style.overflow = 'visible';
el.style.height = 'auto';
el.style.maxHeight = 'none';
}
});

VM84:4 Uncaught SyntaxError: Unexpected identifier 'el' (at VM84:4:1)

Claude

Claude: [25/09/2026--20:12:00:149 AEST]

Line 4 was cut off when you pasted it. el.cli should be el.clientHeight) {, so the parser hit el on the next line inside an unclosed if ( and threw the error. Here's the corrected snippet:

document.querySelectorAll('*').forEach(el => {
const s = getComputedStyle(el);
if (s.overflowY !== 'visible' || s.position === 'fixed' || el.scrollHeight > el.clientHeight) {
el.style.overflow = 'visible';
el.style.height = 'auto';
el.style.maxHeight = 'none';
}
});

Two things to watch for:


Andrew

make the js downloadable bc i think the error is introduced when i copy iy


Claude

Claude: [25/09/2026--21:30:56:393 AEST]

I've saved the snippet as unclip_overflow.js, and it passes a syntax check. Open it in a text editor and copy the whole file, or drag it into DevTools β†’ Sources β†’ Snippets. Either way the line-wrap truncation can't happen.

If Chrome shows "Warning: Don't paste code…" and blocks the paste, type allow pasting and press Enter first. After that, pasting works normally.

[Attached file: unclip_overflow.js]


Andrew

This file type cannot be opened.


Claude

Claude: [25/09/2026--21:32:07:841 AEST]

The chat preview can't open .js files, so I've saved the same code as unclip_overflow.txt, which should open in the viewer. Its contents are identical to the .js file, which passed a syntax check. Copy it from there, or download it and open it in any text editor.

If the copy still comes out broken, check the start of line 3. It should read if (s.overflowY with no line break before el.clientHeight) {.

[Attached file: unclip_overflow.txt]


Andrew

**Build a MD and PDF transcript instructions:**
Transcribe the entire conversation,
DO NOT EMBELLISH OR SUMMARISE UNLESS YOU FIRST HAVE IT VERBATIM,
Expand all Query and Reply windows if applicable,
Preserve formating,
Embed any graphics,
Do not lose a single word,
Suggest a few names derived from a terse summary and pick the best but be as fast as possible.