Commit graph

198 commits

Author SHA1 Message Date
Christopher Gurnee
c236bf3e5a Refactor thread/index.js w/more parallelism/speed
Beforehand, Pushshift comments were all downloaded first, then they were
processed, then all Reddit comments were downloaded, then processed.
Now, as each batch of Pushshift comments completes, it is processed
asynchronously, and Reddit comments are downloaded & processed as soon
as enough comment IDs have been batched for submission. This minimizes
the amount of time spent in the 'Comparing comments to Reddit API'
phase. It also spaces out Reddit API requests for better netiquette.
2022-03-03 14:10:20 -05:00
Christopher Gurnee
d93815ae73 Improve error handling and move it to API layer 2022-03-03 09:10:35 -05:00
Christopher Gurnee
52d8d69d90 Fix bug/typo in 6d1600f 2022-03-02 16:39:33 -05:00
Christopher Gurnee
e0c0c163ae Keep removed posts' Reddit score and num_comments 2022-03-02 12:03:03 -05:00
Christopher Gurnee
d24752db6d Add 'Is Unddit/Pushshift down?' to FAQ 2022-03-01 10:03:13 -05:00
Christopher Gurnee
3fab1f398a Change to all-lowercase in SortBy.js 2022-02-27 01:10:02 -05:00
Christopher Gurnee
94d4514922 Add feedback after 'load more comments' completes 2022-02-26 13:07:38 -05:00
Christopher Gurnee
fb327e7b94 Fix bug w/0-comment posts introduced in 07c72a2 2022-02-25 13:25:02 -05:00
Christopher Gurnee
d6a55ee31c Add '?max_comments=n' query parameter
This increases the initial max-comments-to-download above the user's
preference without changing their saved setting. This can be useful when
linking to a specific comment which is new enough that the default max-
comments setting (of 800) is too low to download the linked comment
tree, causing most users to see a confusing 'No comments found' message.
2022-02-25 11:25:46 -05:00
Christopher Gurnee
cab177c021 Refactor state.js a bit 2022-02-25 10:27:33 -05:00
Christopher Gurnee
1e1a78fbe9 Fix Reload button bug introduced in 59df221 2022-02-25 10:13:05 -05:00
Christopher Gurnee
8204f0829a Remove unnecessary useLocation() call 2022-02-25 08:17:00 -05:00
Christopher Gurnee
9b902f5cf5 Don't line-wrap inside of a setting 2022-02-22 13:05:50 -05:00
Christopher Gurnee
aac22ce109 Speed up and clarify the 'load more comments' UI
* only rerender the comments after loading and iff something changes
 * change text to 'loading...' and make link unclickable while waiting
 * if all comments are already loaded, rename to 'load new comments'
2022-02-22 11:56:53 -05:00
Christopher Gurnee
59df221ff9 Add 'load more comments' links to the thread's end 2022-02-20 14:12:10 -05:00
Christopher Gurnee
07c72a2e41 Skip reloading existing comments from Pushshift 2022-02-19 13:27:40 -05:00
Christopher Gurnee
37d43fe60b Pressing enter on max comments setting blurs it 2022-02-19 10:28:33 -05:00
Christopher Gurnee
6d1600ff01 Use a token bucket to rate-limit the Pushshift API
Queries to Pushshift will now be started about as quickly as
permitted, while also reducing 429 responses to a minimum.
2022-02-19 10:28:27 -05:00
Christopher Gurnee
c98f71bd4d Rewrite api/pushsift/index.js using async/await
* much simpler, got rid of recursion
 * no more Set temporaries, less copying of arrays
 * now returns a Map (thread/index.js need not create it)
2022-02-19 10:25:27 -05:00
Christopher Gurnee
c6585ab749 Offer help if being blocked by Tracking Protection 2022-02-15 17:45:43 -05:00
Christopher Gurnee
76e5ebaa46 Add bookmarks to individual highlighting Qs in FAQ 2022-02-15 17:34:55 -05:00
Christopher Gurnee
56000094f5 Update dependencies 2022-02-15 09:56:48 -05:00
Christopher Gurnee
ec51dc05cc Don't wrongly highlight '[deleted]' as post author 2022-02-07 20:21:44 -05:00
Christopher Gurnee
a8b32127d1
Merge pull request #5 from StevenNL2000/patch-1
Fix detection of deleted and removed comments when browser language is not English
2022-01-30 15:38:38 -05:00
StevenNL2000
aa08dce7c6 Fix detection when browser language is not English 2022-01-30 21:29:01 +01:00
Christopher Gurnee
2f4c8e0c62 Work around 8-year-old Firefox bug
If the max comments setting was changed using only the spinner, it
wasn't saved. See https://bugzilla.mozilla.org/show_bug.cgi?id=1012818
2022-01-29 10:30:37 -05:00
Christopher Gurnee
fe21a0760f Improve speed of changing max comments setting
* Just changing it no longer causes all comments to be rerendered
 * Reloading now only reloads comments intead of entire page
 * Reload button correctly hides when new setting <= current
2022-01-28 14:02:37 -05:00
Christopher Gurnee
5ea2dbf22a Remove focus from option if changed by mouse click 2022-01-25 17:51:54 -05:00
Christopher Gurnee
be94243cab Update dependencies 2022-01-25 16:31:55 -05:00
Christopher Gurnee
3230ebc0d8 Stop using OAuth2 with the Reddit API
None of the API endpoints being used require authentication,
its use was slowing things down a bit for no advantage.
2022-01-06 13:09:08 -05:00
Christopher Gurnee
69e802e94f Update dependencies 2022-01-06 13:08:54 -05:00
Christopher Gurnee
9a0e3b8a79 Show 'last edited' even when edit isn't available 2021-12-20 08:36:32 -05:00
Christopher Gurnee
6193f452c3 Fix plurals in prettyDate() 2021-12-20 08:33:22 -05:00
Christopher Gurnee
e98baf062a Highlight comment author when it's the post author 2021-12-12 16:19:29 -05:00
Christopher Gurnee
c6eaa3a865 Add title texts with exact date/time 2021-12-12 13:20:08 -05:00
Christopher Gurnee
82d3342ab3 Fix parsing of html entities 2021-12-11 12:41:39 -05:00
Christopher Gurnee
cb8f84dc8a Add entry to FAQ explaining Firefox issue 2021-12-10 13:17:27 -05:00
Christopher Gurnee
92f050e660 Improve legibility and compatibility of settings 2021-12-10 12:15:18 -05:00
Christopher Gurnee
33606604ef Also retrieve removed link posts from Pushshift 2021-12-09 19:31:14 -05:00
Christopher Gurnee
bba3db6073 Add *edited link to toggle archived/reddit comment 2021-12-08 16:10:20 -05:00
Christopher Gurnee
c7eea0cb1f Be more descriptive with removed posts 2021-12-08 14:40:32 -05:00
Christopher Gurnee
3c52aaa293 Fix post color when post is missing from Pushshift 2021-12-03 18:37:14 -05:00
Christopher Gurnee
882b0cf73e Fix small race condition in 245bfe1 2021-12-03 11:23:01 -05:00
Christopher Gurnee
0cc254eb20 Make "max. to download" setting easier to change 2021-12-03 11:01:56 -05:00
Christopher Gurnee
245bfe1f6b Correctly display removed link posts 2021-12-02 17:03:16 -05:00
Christopher Gurnee
e13b68f90f Add "max. comments to download" setting 2021-12-01 13:06:01 -05:00
Christopher Gurnee
854f56e6f2 Fix bug where status is sometimes stuck "loading"
This was introduced in 9e343fc. There may still be a race condition
here, however it should occur far less frequently than before.
2021-11-30 18:21:28 -05:00
Christopher Gurnee
9c102b9dc1 Clicking the [-] button now collapses comments
Also adjust the css to make deeply nested comments easier to read.
2021-11-30 14:29:44 -05:00
Christopher Gurnee
8a3437c7df Update dependencies 2021-11-29 16:35:43 -05:00
Christopher Gurnee
9e343fcbba Add ability to view posts from banned subreddits 2021-11-19 12:58:34 -05:00