Christopher Gurnee
006e6ab5af
Make collapse and edited links keyboard navigable
2022-03-16 21:54:58 +00:00
Christopher Gurnee
ced6a27e9b
Remove unused 'removed' & 'deleted' arrays
2022-03-16 21:54:58 +00:00
Christopher Gurnee
d58903f61f
Send almost-full comment requests to Reddit API
2022-03-16 21:54:58 +00:00
Christopher Gurnee
456b212d5f
Use Pushshift metadata to see if loadedAllComments
...
This saves one Pushshift request on about half of all (re-)loads
2022-03-16 21:54:58 +00:00
Christopher Gurnee
0081278e3c
Replace maxComments in state w/loadingMoreComments
...
maxComments is now only the user-preferred setting, and has nothing to
do with displayed state. loadingMoreComments is used to trigger loading
more comments, and temporarily contains the desired comment count to
load. This should make future changes easier. Also fix two minor bugs:
* the 'Reload' was sometimes hidden after clicking 'load more comments'
* 'loaded x more comments' incorrectly appeared after clicking 'Reload'
2022-03-16 21:54:47 +00:00
Christopher Gurnee
09e6f9d11d
Make collapse-minus width the same as expand-plus
2022-03-05 21:13:11 -05:00
Christopher Gurnee
41870fc493
Add Android Usage to the FAQ and clarify PC Usage
2022-03-05 14:42:53 -05:00
Christopher Gurnee
3c728e569a
Speed up sort & filter changes
2022-03-05 12:50:18 -05:00
Christopher Gurnee
1b156c5f56
Small update to c236bf3
...
This probably isn't fixing a bug, but better safe than sorry.
2022-03-05 09:58:14 -05:00
Christopher Gurnee
6c83b19767
Small wording change in FAQ
2022-03-04 17:35:39 -05:00
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