Live data from Hacker News

Show HN: I made an extension to keep Twitter from losing my scroll position

chrome.google.com

21–30 of 31 posts

Re: Show HN: I made an extension to keep Twitter from losing my scroll position

#21
post #12
post #4

Earlier quoted context omitted.

Hey that works! Thanks!

Shift+click or Ctrl+click works if someone doesn't have a middle button (I forget the exact combo bc it's just in muscle memory from daily use)

Usually: shift is a new window and control is a new tab.

Re: Show HN: I made an extension to keep Twitter from losing my scroll position

#23
post #16

Earlier quoted context omitted.

Twitter loses your scroll position when you go from a Tweet thread to a reply thread, then come back. This is what the extension fixes. Twitter does keep your scroll position when you go from a "top-level" view ("For you", "Following", ...) to a Tweet thread, then come back.

I cannot reproduce this, but I don't doubt it happens for other users. Guess I am in the lucky bucket. Maybe Firefox users get an older version without some new "improvements". :) Edit: Nevermind, it happens to me as well, I just never noticed.

How interesting. I experience this problem on both Chrome and Firefox (v121.0.1 on Ubuntu 22.04).

I am mildly curious about why only a subset of Firefox users are experiencing this. Do you mind sharing your Firefox version and OS?

Re: Show HN: I made an extension to keep Twitter from losing my scroll position

#24
post #23

Earlier quoted context omitted.

I cannot reproduce this, but I don't doubt it happens for other users. Guess I am in the lucky bucket. Maybe Firefox users get an older version without some new "improvements". :) Edit: Nevermind, it happens to me as well, I just never noticed.

How interesting. I experience this problem on both Chrome and Firefox (v121.0.1 on Ubuntu 22.04). I am mildly curious about why only a subset of Firefox users are experiencing this. Do you mind sharing your Firefox version and OS?

I went to do a sanity check using your steps and unfortunately I missed the problem the first time around - when I go to a tweet thread, then a reply thread, then come back to the tweet thread, it is indeed scrolled all the way up to the top. So I was wrong, I am affected by the same issue, I just never realized it until I went looking for it. One positive I'm taking away from this is the realization that I use Twitter less intensively than I thought, because I wouldn't have noticed this without the explicit steps I don't think. :D

Re: Show HN: I made an extension to keep Twitter from losing my scroll position

#25
post #12
post #4

Earlier quoted context omitted.

Hey that works! Thanks!

Shift+click or Ctrl+click works if someone doesn't have a middle button (I forget the exact combo bc it's just in muscle memory from daily use)

for mac:

cmd+click: new tab in the background

cmd+shift+click: new tab and focus that new tab

Re: Show HN: I made an extension to keep Twitter from losing my scroll position

#29
post #17

I just developed a Chrome extension using a content script, very similar to this extension. Extension author, question: What was your process for getting updates from the content.js script loaded into the browser for testing? Was it reloading the extension through chrome://extensions? The only thing I found that could work was changing the content script and reloading the extension through chrome://extensions. I didn…

You're right. I had to reload the extension, then reload the page to get my content script changes injected into it.

Re: Show HN: I made an extension to keep Twitter from losing my scroll position

#30
post #27

Nice. Instant download. EDIT: the flash is a bit extreme on dark mode, and hides the text. Would be good to make this just a light alpha overlay which fades the same way, or / and ability to just turn the flash off

Hah, didn't even know Twitter had a dark mode.

I've updated the extension to use a dark-mode-friendly highlight color when appropriate. The update should pass the web store review process in a couple days (hopefully).

Post reply on HN