tommoor / HackerNew

The best Chrome extension to make Hacker News quicker and more useful.
126 stars 29 forks source link

Fix Endless Scrolling #30

Open SamHasler opened 7 years ago

SamHasler commented 7 years ago

Fixes #23

Tracking testing progress. This is the current state of the patch:

Page Types

NB: Threads "above the fold" bug is probably present on all pages given the right data/screen-size

Page Types no longer used? Remove code:

Misc

tommoor commented 7 years ago

Wow, thanks! In your testing did it only load one page and then not load further pages?

SamHasler commented 7 years ago

On some pages yes. I'll see if I can fix that next week. On Feb 25, 2017 6:40 AM, "Tom Moor" notifications@github.com wrote:

Wow, thanks! In your testing did it only load one page and then not load further pages?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tommoor/HackerNew/pull/30#issuecomment-282464942, or mute the thread https://github.com/notifications/unsubscribe-auth/AADUBcy-kqwVDzmXmOpmQmwCSyiG61C2ks5rf8zhgaJpZM4MLVKJ .

tommoor commented 7 years ago

Maybe we should merge this, it's much better than what's in use already

SamHasler commented 7 years ago

I have something that's much better. I'll try and find time to commit it tomorrow. If you don't here from me soon by all means merge. On Apr 19, 2017 4:13 AM, "Tom Moor" notifications@github.com wrote:

Maybe we should merge this, it's much better than what's in use already

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tommoor/HackerNew/pull/30#issuecomment-295055524, or mute the thread https://github.com/notifications/unsubscribe-auth/AADUBR_SSjs5yZXsi_cVZTapIt9IV_1lks5rxXvfgaJpZM4MLVKJ .

SamHasler commented 7 years ago

I've added my current version. It's much better than the live version, however, there are some issues which I've listed below. They're relatively minor apart from the ":warning:" layout one. I'll see if I can fix that but I probably won't be looking at the rest any time soon.

Untested

Known issues:

NB: I also tested the links on the lists page and couldn't find anything other the the issues above.

seanf commented 6 years ago

@SamHasler I haven't tried this extension yet, let alone the PR, but here's a user with lots of favorite comments: https://news.ycombinator.com/favorites?id=danso (#4 author on HN according to this old list https://github.com/antontarasenko/smq/blob/master/reports/hackernews-top-authors-by-h-index.md)

I think HN has blocked me for opening too many comments pages at once, so I hope this info is useful :-/

SamHasler commented 6 years ago

@seanf Thanks for the test page. If the block doesn't lift try emailing hn@ycombinator.com

I'm fairly sure HN changed since I made this PR (I think the selectors are simpler now). I've fixed more pages now so I'll have to update it if I find the time.