Skip to content

Fix scrolling on LinkedIn - #4946

Open
kyh wants to merge 1 commit into
philc:masterfrom
kyh:kyh/linkedin-scrolling-element
Open

kyh wants to merge 1 commit into
philc:masterfrom
kyh:kyh/linkedin-scrolling-element

Conversation

@kyh

@kyh kyh commented Sep 24, 2026

Copy link
Copy Markdown

On LinkedIn (e.g. profile pages, linkedin.com/in/<name>), j/k do nothing on page load until you click somewhere in the page.

LinkedIn scrolls its content inside main#workspace (overflow-y: scroll). html doesn't scroll and body is overflow: hidden, and firstScrollableElement() doesn't reach #workspace, so activatedElement falls back to the non-scrolling document. Clicking works because DOMActivate sets activatedElement inside #workspace.

This adds LinkedIn to specialScrollingElementMap, same as Reddit/Telegram. Pages without main#workspace fall back to the existing behavior.

Tested by loading the patched extension unpacked in Chrome: j/k scroll LinkedIn profiles immediately after load.

🤖 Generated with Claude Code

LinkedIn scrolls pages inside main#workspace; the document doesn't scroll and firstScrollableElement() doesn't find it, so j/k do nothing until the user clicks into the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant