Skip to content

Instantly share code, notes, and snippets.

View grok's full-sized avatar
🚀
Working with the cool peeps at @ Ridgeline

Sterling Hamilton grok

🚀
Working with the cool peeps at @ Ridgeline
View GitHub Profile
@grok
grok / README.md
Last active November 3, 2025 20:05
Chrome DevTools / console.log Expand All / Collapse All

Hacking Chrome DevTools

You ever have a bunch of console.log instances you wish you could just expand or collapse at once? Well this will do that.

You of course need to open your DevTools Console, on a mac that shortcut is ⌘ (Command) + ⌥ (Shift) + J

Now hit ⌘ (Command) + ⌥ (Shift) + J again to open DevTools for your DevTools.

Then run the code below. If you run it once, it will collapse everything it can. If you run it again, it will expand.